ggplot2: facet_wrap strip color based on variable in data set

With a little bit of work, you can combine your plot with a dummy gtable that has the right grobs, d <- data.frame(fruit = rep(c(“apple”, “orange”, “plum”, “banana”, “pear”, “grape”)), farm = rep(c(0,1,3,6,9,12), each=6), weight = rnorm(36, 10000, 2500), size=rep(c(“small”, “large”))) p1 = ggplot(data = d, aes(x = farm, y = weight)) + geom_jitter(position = … Read more