杨扬|
对于R中的总图,legend
用于对数字进行编号。
set.seed(100)
Mydata=rnorm(65)
Year=1950:2014
plot(x=Year,y=Mydata,type = "l")
legend("topleft","(a)",bty = "n")
我不知道我们如何使用ggplot2做同样的事情。谢谢。
G.格洛腾迪克
使用网格可以独立于数据来完成:
library(ggplot2)
qplot(Year, Mydata, geom = "line")
library(grid)
grid.text("(a)", 0.15, 0.85)
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
编辑于
我来说两句