我想用ggplot创建一个图,其中不同的facet应该有不同的y轴限制 . 默认情况下,每个构面都具有相同的y轴值 . 可以以某种方式改变吗?
您可以改为 scales 改为"free_y" .
scales
facet_grid(facets, margins = FALSE, scales = "fixed", space = "fixed", shrink = TRUE, labeller = "label_value", as.table = TRUE, drop = TRUE)
有关更多详细信息和示例,请参阅:http://docs.ggplot2.org/0.9.3.1/facet_grid.html
见 ?facet_grid . 您想使用参数 scales="free_y" .
?facet_grid
scales="free_y"
2 回答
您可以改为
scales
改为"free_y" .有关更多详细信息和示例,请参阅:http://docs.ggplot2.org/0.9.3.1/facet_grid.html
见
?facet_grid
. 您想使用参数scales="free_y"
.