情节顶部的主标题被截断 [英] Main title at the top of a plot is cut off
本文介绍了情节顶部的主标题被截断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在创建新的x11()
设备后绘制两个图形并想要设置整体标题时,显示效果不佳.标题字符串的顶部位于窗口顶部栏的后面.有没有办法来解决这个问题?我在?x11
或x11客户端首选项中找不到任何有用的东西.
When I plot two graphs after creating a new x11()
device and want to set a overall title it is not displayed well. The top part of the title string is behind the window top bar. Is there a way to fix this? I couldn't find anything in ?x11
or in the x11 client preferences that helped.
此脚本:
x11()
x <- rnorm(1000, 0, 1)
hist(x)
title('Title', outer = TRUE)
像这样:
推荐答案
R默认情况下不会为外边距分配任何空间;参见par("oma")
.试试
R does not by default allot any space to the outer margins; see par("oma")
. Try
par(oma=c(0,0,2,0))
(请参阅?par
并搜索外部"以获取更多信息.)
(See ?par
and search for "outer" for more information.)
这篇关于情节顶部的主标题被截断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文