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:
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
|
||||
|
||||
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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user