Open science-chump opened 12 months ago
Not an easy way but there are ways: https://stackoverflow.com/questions/53455092/r-ggplot2-change-colour-of-font-and-background-in-facet-strip https://stackoverflow.com/questions/70841252/how-to-specify-different-background-colors-for-each-facet-label-in-ggplot2
Easy way with an extra package ggh4x https://stackoverflow.com/questions/19440069/ggplot2-facet-wrap-strip-color-based-on-variable-in-data-set
element_rect() only takes one value for fill sadly
Hello, I am trying to customize the background colors of the facets in my stacked bar plot and am running into issues.
Here is what the plot looks like:
The problem is that the only color that appears is the first one in the sequence, and not the rest. This is the code I am using to plot it:
Is there a way that I can get each facet strip to be its own unique color?