指定绘图的宽度和高度 [英] Specify Width and Height of Plot
本文介绍了指定绘图的宽度和高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
par 来指定主面板的宽度和高度,使它始终为固定大小? windows.options 来设置它: windows.options(width = 10,height = 10)
#plot away
plot(...)
如果您需要重置为出厂设置:
< pre $ dev.off()
windows.options(reset = TRUE)
#更多绘图
绘图(...)
I have a panel containing three plots. How can I use par
to specify the width and height of the main panel so it is always at a fixed size?
解决方案 I usually set this at the start of my session with windows.options
:
windows.options(width=10, height=10)
# plot away
plot(...)
If you need to reset to "factory settings":
dev.off()
windows.options(reset=TRUE)
# more plotting
plot(...)
这篇关于指定绘图的宽度和高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文