在下面的示例中,我如何使y轴限制根据每个面板中的数据进行缩放?
mt <- ggplot(mtcars, aes(mpg, wt, colour = factor(cyl))) + geom_point()
这两个都不行:
mt + facet_grid(. ~ cyl, scales="free")
mt + facet_grid(. ~ cyl, scales="free_y")
facet_grid
中scales
参数的预期用途是什么吗? - geotheory