You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use case for this is to use one of the categories as the reference and draw it in every panel, but I don't want it to have its own panel. So my though was to plot one geom without the reference category and then another with just the reference and without the faceting variable. But it doesn't work because it adds the panel for the reference category even though that category is never seen by any geom.
I've noticed this too but have no idea whether this behaviour is intended or not.
In any case, from a quick test it seems that ignoring the global data in Facet$compute_layout() violates some facet order expectations in the tests, so I'm not sure how easy this is to fix (if at all desired).
facet_wrap()
(andfacet_grid()
) seem to draw panels for values that are not drawn if they are removed using thedata
argument in a geom.So, this draws a panel for cyl = 4 even though that data doesn't exist in the plot.
Compare with the result removing the category at the top-level call of the plot.
The use case for this is to use one of the categories as the reference and draw it in every panel, but I don't want it to have its own panel. So my though was to plot one geom without the reference category and then another with just the reference and without the faceting variable. But it doesn't work because it adds the panel for the reference category even though that category is never seen by any geom.
Created on 2023-07-19 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: