mirror of
https://gitlab.com/MisterBiggs/splomplots.jl.git
synced 2025-06-16 06:26:39 +00:00
were actually splommin
This commit is contained in:
parent
3bfe400141
commit
c355d5c497
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@ -1,3 +1,2 @@
|
|||||||
{
|
{
|
||||||
"julia.environmentPath": "c:\\Coding\\splomplots.jl"
|
|
||||||
}
|
}
|
||||||
|
@ -17,18 +17,21 @@ function splom(df::DataFrame)
|
|||||||
end
|
end
|
||||||
|
|
||||||
cols = collect(keys(columns))
|
cols = collect(keys(columns))
|
||||||
col_pairs = zip(cols[1:(end - 1)], cols[2:end])
|
col_pairs = [(x, y) for x in cols, y in cols]
|
||||||
|
|
||||||
# plot(layout=length(cols)^2)
|
|
||||||
scatter_plots = repeat(
|
scatter_plots = repeat(
|
||||||
[scatter([1], [1])], length(col_pairs)
|
[scatter([1], [1])], length(col_pairs)
|
||||||
)
|
)
|
||||||
|
|
||||||
for (i, (x, y)) in enumerate(col_pairs)
|
for (i, (x, y)) in enumerate(col_pairs)
|
||||||
println((x, y))
|
if x == y
|
||||||
scatter_plots[i] = scatter(df[!, x], df[!, y])
|
scatter_plots[i] = plot()
|
||||||
|
else
|
||||||
|
scatter_plots[i] = scatter(df[!, x], df[!, y])
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return plot(scatter_plots...)
|
|
||||||
|
return plot(scatter_plots...; label="")
|
||||||
end
|
end
|
||||||
|
|
||||||
df = dataset("datasets", "iris")
|
df = dataset("datasets", "iris")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user