mirror of
https://gitlab.com/MisterBiggs/splomplots.jl.git
synced 2025-06-16 06:26:39 +00:00
added axis labels
This commit is contained in:
parent
c355d5c497
commit
4853ad51e4
@ -18,16 +18,27 @@ function splom(df::DataFrame)
|
||||
|
||||
cols = collect(keys(columns))
|
||||
col_pairs = [(x, y) for x in cols, y in cols]
|
||||
|
||||
col_len = length(cols)
|
||||
scatter_plots = repeat(
|
||||
[scatter([1], [1])], length(col_pairs)
|
||||
)
|
||||
|
||||
for (i, (x, y)) in enumerate(col_pairs)
|
||||
scatter_plots[i] = plot()
|
||||
if x == y
|
||||
scatter_plots[i] = plot()
|
||||
plot!(;
|
||||
xaxis=nothing, yaxis=nothing, showaxis=false
|
||||
)
|
||||
else
|
||||
scatter_plots[i] = scatter(df[!, x], df[!, y])
|
||||
scatter!(df[!, x], df[!, y])
|
||||
end
|
||||
|
||||
if i % col_len == 1
|
||||
ylabel!(y)
|
||||
end
|
||||
|
||||
if length(col_pairs) - i < col_len
|
||||
xlabel!(x)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user