Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一个带有放大轴标签的图,cex.lab=2但标签超出了绘图区域。关于如何解决这个问题的任何想法?
cex.lab=2
这是该问题的一个示例:
plot(1:10,1:10,ylab=~gamma,cex.lab=2)
这会产生一个带有斩首 $\gamma$ 的图形
在谷歌和本网站提出问题之前,我已经进行了一些搜索,但这次我的谷歌 foo 出卖了我。
您必须设置更大的绘图窗口边距。这可以通过 functionpar()和 argument来实现mar=。数字对应于从底部开始的边距,然后是左边距,上边距和右边距。
par()
mar=
par(mar=c(5,5,1,1)) plot(1:10,1:10,ylab=~gamma,cex.lab=2)