New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cornerplot and corrplot #210
Comments
Something like df = (x = rand(100), y = rand(100), z = rand(100))
vars = [:x, :y, :z]
data(df) * (visual(Scatter) + linear()) * mapping([:x, :y, :z], [:x :y :z], col = dims(1), row = dims(2)) would do a "symmetric" |
@piever can you please clarify the col/row mechanism? Couldn't find it in the docs. I am having trouble creating the corner/corrplot using the snippet you shared above. |
@piever I have data in df = (x = rand(100), group=repeat(1:4, 25)) |
I think something like data(df) * (visual(Scatter) + linear()) * mapping(:x, :x, col = :group => nonnumeric, row = :group => nonnumeric) should do the trick in that case. EDIT: as pointed out below, this does not do the desired thing. The things that are not supported at the moment are adding marginal histograms in a simple way (either around the layout or in the diagonal) and doing asymmetric things (lower triangle is different from upper triangle). I'm not sure if there is a simple way to support that consistently within AoG, or whether one is better off adding some sort of "recipe with rich layout" to Makie, where a plot gets a subfigure instead of just an axis. There is a little bit of discussion on that around piever/SplitApplyPlot.jl#53 (comment) |
Ah yes, of course you are right... I'm afraid there is no way at the moment other than manually unstacking the data to pass to the wide format. |
Is this something you would be interested in adding as a feature? And have you already thought about the "AoG" interface for such a thing? Or do you think it should just be a Makie recipe with DataFrame input because it can't really leverage any AoG features? |
Update: PairPlots.jl provides this functionality with Makie.jl
Em ter., 19 de set. de 2023 03:06, Patrick Kofod Mogensen <
***@***.***> escreveu:
… Is this something you would be interested in adding as a feature? And have
you already thought about the "AoG" interface for such a thing? Or do you
think it should just be a Makie recipe with DataFrame input because it
can't really leverage any AoG features?
—
Reply to this email directly, view it on GitHub
<#210 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZQW3I6GPSOHRJXCFFEUZ3X3EY67ANCNFSM46L756PQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Any plans to add cornerplot and corrplot like in StatsPlots.jl? Perhaps it is already possible to achive similar result with AOG?
The text was updated successfully, but these errors were encountered: