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
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.
The text was updated successfully, but these errors were encountered:
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:
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.
The text was updated successfully, but these errors were encountered: