感谢您的阅读。我发现我无法在绘图区域之外绘制线/点或添加文本。如果我从绘图内部(轴内)区域到 xlab 主标题区域绘制一条线,则仅显示绘图内的部分。在多重绘图 (mfrow) 中,线/点只会在最后一个活动绘图内绘制。
plot(0);
l=locator(2,type='n');
lines(l, type='l');
有什么办法解决这个问题吗?谢谢!
xpd 参数控制可以绘制的位置。使用 par()$xpd 检查当前值,然后尝试设置 par(xpd=NA)。
来自 par 帮助:
‘xpd’ A logical value or ‘NA’. If ‘FALSE’, all plotting is
clipped to the plot region, if ‘TRUE’, all plotting is
clipped to the figure region, and if ‘NA’, all plotting is
clipped to the device region. See also ‘clip’.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)