-
Notifications
You must be signed in to change notification settings - Fork 46
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
Different categorical X/Y scales across facets #550
Comments
Seems not to be easily possible in base ggplot either, however I found this extension as an inspiration https://ggforce.data-imaginist.com/reference/facet_matrix.html |
One difficulty in implementation is that the |
using
layout = dims(1)
one can currently create a facet layout where each x or y axis is separate, but only if the data is continuous:(never mind the empty big legend, that's a separate bug)
This technique doesn't work with categorical data though, because the internal processing works such that categorical scales are determined together across all facets (unlike continuous, which are determined per facet first and potentially merged later).
The X/Y scales are actually special because they can be separated, unlike the scales needing a legend or colorbar (unless we use one legend/colorbar per facet, but at that point we can also just plot multiple plots). It would be nice if we could visualize completely unrelated categorical scales on different facets while still sharing things like continuous colorbars or color groups.
The text was updated successfully, but these errors were encountered: