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
guides="collect" will only collect legends when they are identical, which for your case can be achieved by setting the limits= to include all categories. Additionally in ggplot2 >= 3.5.0 one also has to add show.legend=TRUE to the geom display a legend key for unused levels:
Here's an example:
So what I'd like is to be able to have just one legend with B1, B2, B3, and B4. Is that possible?
The text was updated successfully, but these errors were encountered: