-
Notifications
You must be signed in to change notification settings - Fork 45
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
how to deal with 2D data / heatmaps? #267
Comments
You are not forced to have your data in a table in AoG, so for example with the "pre-grouped" syntax (see #212 (comment) and http://juliaplots.org/AlgebraOfGraphics.jl/dev/gallery/gallery/data%20manipulations/pre_grouped_data/#Pre-grouped-data), you could do x, y, z = 1:10, 1:10, rand(10, 10)
mapping([x] => "x", [y] => "y", [z] => "z") * visual(Heatmap) |> draw Ideally all the possible syntaxes (basically there are the 4 combinations of pre-grouped vs not pre-grouped and with a dataset vs without a dataset) should be supported easily. For now only pre-grouped without dataset and not pre-grouped with dataset are supported, but hopefully it should be easier to get all of them to work. Heatmap (or in general these plots with 2-d data) are definitely a good use cases for that). |
That’s awesome! Thank you. Might I suggest that the simple example you just posted be added to the pre-grouped documentation? It’s very ergonomic and I didn’t gather that was possible until your kind reply |
The above example doesn't work now.
|
This is less an AOG issue than a general irk with grammar of graphics. Dealing with 2D data is a bit unwieldly.
is a lot of work compared to:
The text was updated successfully, but these errors were encountered: