我有一个图例中的一条线(从abline语句)经过它。我怎样才能实现在图例附近隐藏的abline?这应该可以通过将图例背景设置为白色而无边框来实现,但我怎样才能实现这一目标? 假设图形应该是这样的:不带边框和白色背景的情节图例
windows.options(width=30, height=12)
plot(1:10)
abline(v=seq(1,10,1), col='grey', lty='dotted')
legend(4.8, 3, "This legend text should not be disturbed by the dotted grey lines")
,并使之更加复杂一些: 如果传说干扰了点图的点:我怎样才能做到这一点的ablines接近得到无形(如上所述),但点点仍然可见?
windows.options(width=30, height=12)
plot(1:10)
abline(v=seq(1,10,1), col='grey', lty='dotted')
legend(1, 5, "This legend text should not be disturbed by the dotted grey lines, but the plotted dots should still be visible")
最后:有没有办法在图例语句中引入换行符?
为什么此问题未标记为已回答? – 2016-10-27 13:22:56