Color facet strips by a variable

plot_facets_color(p, strip_color, palette)

Arguments

p

A ggplot object for the original facetted plot.

strip_color

Categorical column in the data for the original plot to use to color the facet strips. Tidyeval is used here.

palette

A character vector of colors. Can be named to assign each color to a value in `strip_color`.

Value

Nothing, the plot is printed to device.