R Error : figure margins too lar

2019-04-23  本文已影响0人  溪溪溪溪溪川

今天用Rstudio(server版本)做WGCNA关联表型图出现:Error in plot.new() : figure margins too large

问题:

图版边太大 (24寸显示器都hold不住)


image.png
解决办法:
实际方法:
> par("mar")
[1] 3 8 1 1

修改绘图参数 par(mar = c(bottom, left, top, right))
我重新设置调整,完美解决,导出pdf文件,但是设置边距为0没有效果,因为我的图形数据会显示不完整。

par(mar = c(4, 8, 8, 1))
总结:

基础没打好,毕竟学习R,我是遇到什么学什么,尴尬~

reference

http://www.aiuxian.com/relative/p-2292685.html
http://blog.sina.com.cn/s/blog_1317cd3430102vmlh.html

上一篇 下一篇

猜你喜欢

热点阅读