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
In situations when we are plotting factors with (in this case points) different types of categories, we would like to be able to have more control on how things appear in the legend. Whilst you can give ggplot the number of rows and columns to use for the legend you cannot (as far as I can find) give it the row/column locations of the factors which would allow you to have empty spaces in the legend like this:
I tried to look at the legend source code to suggest a potential implementation but could not work out exactly where the rows and columns are implemented.
The text was updated successfully, but these errors were encountered:
I like this idea, but maybe this is a better fit for a guide extension rather than built into guide_legend().
Out of curiosity, how would you expect to feed the group structure to the legend?
I've been experimenting with a similar thing if you're interested. I don't know if I'm going to move that function around though, so it may not be very stable.
In situations when we are plotting factors with (in this case points) different types of categories, we would like to be able to have more control on how things appear in the legend. Whilst you can give ggplot the number of rows and columns to use for the legend you cannot (as far as I can find) give it the row/column locations of the factors which would allow you to have empty spaces in the legend like this:
I tried to look at the legend source code to suggest a potential implementation but could not work out exactly where the rows and columns are implemented.
The text was updated successfully, but these errors were encountered: