要一個3歲後 ggplot2: facet_wrap strip color based on variable in data set 巴蒂斯特給了以下解決方案: d <- data.frame(fruit = rep(c("apple", "orange", "plum", "banana", "pear", "grape")),
farm = rep(c(0,1,3,6,9,1
之間裁剪線說我有一個情節是這樣的: # Load libraries
library(ggplot2)
library(grid)
# Load data
data(mtcars)
# Plot results
p <- ggplot(data = mtcars)
p <- p + geom_bar(aes(cyl))
p <- p + coord_flip()
p <- p