Thank you for a very nice package! I found function facet_wrap_paginate() especially useful, but would be great if it would also allow for dropping irrelevant colors from the legend..
As an example: here is a plot using starwars dataset from dplyr package, where I want to assign a specific color to every name.
And then the second page:
g + facet_wrap_paginate(facets = "hair_color", nrow = 3, ncol = 2, page = 2)
As you can see, color legend on both pages is the same, even though the names in the dataset are unique and are only present on one of the two pages. It would be handy to have an option to drop those irrelevant elements from the legend.
Hello,
Thank you for a very nice package! I found function facet_wrap_paginate() especially useful, but would be great if it would also allow for dropping irrelevant colors from the legend..
As an example: here is a plot using starwars dataset from dplyr package, where I want to assign a specific color to every name.
Then I use facet_wrap_paginate() function to have at most 6 facets per page:
g + facet_wrap_paginate(facets = "hair_color", nrow = 3, ncol = 2, page = 1)
And then the second page:![image](https://user-images.githubusercontent.com/37506232/224568650-228e0cbb-a8d0-45d4-9cb5-c5b3807e3f06.png)
g + facet_wrap_paginate(facets = "hair_color", nrow = 3, ncol = 2, page = 2)
As you can see, color legend on both pages is the same, even though the names in the dataset are unique and are only present on one of the two pages. It would be handy to have an option to drop those irrelevant elements from the legend.