1
0
mirror of https://gitlab.com/MisterBiggs/splomplots.jl.git synced 2025-06-15 14:06:39 +00:00

were actually splommin

This commit is contained in:
Anson 2022-03-09 16:21:04 -07:00
parent 3bfe400141
commit c355d5c497
2 changed files with 8 additions and 6 deletions

View File

@ -1,3 +1,2 @@
{
"julia.environmentPath": "c:\\Coding\\splomplots.jl"
}

View File

@ -17,18 +17,21 @@ function splom(df::DataFrame)
end
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([1], [1])], length(col_pairs)
)
for (i, (x, y)) in enumerate(col_pairs)
println((x, y))
scatter_plots[i] = scatter(df[!, x], df[!, y])
if x == y
scatter_plots[i] = plot()
else
scatter_plots[i] = scatter(df[!, x], df[!, y])
end
end
return plot(scatter_plots...)
return plot(scatter_plots...; label="")
end
df = dataset("datasets", "iris")