ggplot:如何增加多面图之间的间距?
我有几个多面直方图(通过下面的命令获得),它们很好地绘制在另一个之下。我想增加它们之间的间距,但是它们很紧。
我查看了 doc 但没有找到这方面的参数。
qplot (Happiness.Level, Number.of.Answers, data=mydata, geom="histogram") + facet_grid (Location ~ .)
I have several faceted histograms (obtained with the command below) which are nicely plotted one under the other. I would like to increase the spacing between them, however, they are tight.
I looked at the doc but didn't find a parameter for this.
qplot (Happiness.Level, Number.of.Answers, data=mydata, geom="histogram") + facet_grid (Location ~ .)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 主题 函数:
另请参阅此处:由ggplot2生成的切片图
Use the theme function:
See also here: Slicing plots generated by ggplot2
只需添加到 @rcs 响应:
Just to add to @rcs response: