我正在使用qplot绘制函数图形,我希望将图例放置在图形内部。我已经使用了``````
opts( legend.position = c(0.7,0.7) )
我希望把图例移动到我想要的位置。
然而,图例周围有白色边框,在灰色背景上会显示出来。
例如:
library(ggplot2)
x = c(1:20)
y = c(1:20)
p <- qplot(x,y, color = "blue")
p <- p + scale_colour_identity("Example", breaks=c("blue"), labels=c("dots"))
p <- p + opts(legend.position = c(0.6, 0.4))
print(p)
我想知道如何从图例中删除此边框。谢谢。