以下是使用内置R数据的示例:
data(mpg, package = "ggplot2") # load data
g <- ggplot(mpg, aes(x = displ, y = hwy)) + geom_point()
+ labs(title = "hwy vs displ", caption = "Source: mpg")
+ geom_smooth(method = "lm", se = FALSE)
g2 <- g + facet_grid(cyl ~ class)
g2
对于8柱面组,有没有办法比较scale_y_reverse()?