R 中的多面板标题
我有一个关于 R 的超简短问题,
我的目标是为使用 par 生成的多面板图分配一个通用标题,例如
par(mfrow=c(1,2))
plot(rnorm(1000))
plot(rnorm(1000))
,所以,类似于绘图函数的“main”,但扩展到两个图。有规范的方法可以做到这一点吗?
感谢您的任何答复:-)
I have an ultra short question about R
My aim is to assign a common title to a multi-panel plot generated using par, e.g.
par(mfrow=c(1,2))
plot(rnorm(1000))
plot(rnorm(1000))
So, something like "main" for the plot function, but extended to both plots. Is there a canonical way to do this?
Thanks for any answer :-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将
mtext
与选项outer
结合使用:Use
mtext
with optionouter
: