ggplot2 icon indicating copy to clipboard operation
ggplot2 copied to clipboard

Add feature to give legend items row/column locations to appear.

Open Maschette opened this issue 1 year ago • 4 comments

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:

image

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.

Maschette avatar Aug 04 '24 23:08 Maschette