简体   繁体   English

控制各个方面的纵横比,facet_wrap

[英]Control aspect ratio of individual facets, facet_wrap

Is there a way to control the size/aspect ratio of an individual plot within a facet_wrap() plot? 有没有办法控制facet_wrap()图中单个图的大小/宽高比? Thanks, -D 感谢:D

Could it be a solution simply to 'free' the x axis, y axis or both scales with either scales = "free_x" , scales = "free_y" or scales = "free" ? 它是一个解决方案,只是为了“释放”x轴,y轴或两个scales ,其中scales = "free_x"scales = "free_y"scales = "free"

Here one example from the facet_wrap documentation page , 这是facet_wrap文档页面中的一个示例,

library(ggplot2)
p <- qplot(displ, hwy, data = mpg)
p + facet_wrap(~ cyl, scales = "free") 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM