Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Request: multiple colours for facet strip.background #2096
Comments
|
AFAIK it is entirely doable, but introducing vectorized theme elements as you propose raises the question of what users will expect when they are applied to other aspects. In the meanwhile, here is a solution that modifies the resulting grob. The plot is one of the first examples from
Might be pretty with some other colour choices... |
karawoo
added feature themes
labels
Jun 13, 2017
dickie-roper
commented
Jun 18, 2017
|
Sorry, I'm not particularly great in R, but would it be possible to map the fill of the facet strip background to the variable that is being used for the facet (or some other variable)? Something like... I know it may seem a bit redundant to also colour by the facetting variable but there are cases where it can add some clarity. |


alexconingham commentedApr 4, 2017
This code generates the plot, and changes the strip backgrounds to red:
It would be useful to be able to have each strip a different colour, something like the below seemed intuitive though just makes them red (first colour in the call is used)