虽然我可以使用通用绘图命令更改注释,但关闭轴和注释并使用轴命令再次指定它们,例如
cars <- c(1, 3, 6, 4, 9)
plot(cars, type="o", col="blue", ylim=range(0, cars), axes=FALSE, ann=FALSE)
axis(1, at=1:5, lab=c("Mon","Tue","Wed","Thu","Fri"))
我不能用时间序列对象来做,例如
www <- "http://www.massey.ac.nz/~pscowper/ts/Maine.dat"
Maine.month <- read.table(www, header = TRUE)
attach(Maine.month)
Maine.month.ts <- ts(unemploy, start = c(1996, 1), freq = 12)
Maine.98 <- window(Maine.month.ts, start = c(1998,1), end = c(1998,11))
如何Maine.98
使用如下所示的注释进行绘图:
"Jan-98" "Feb-98" "Mar-98" "Apr-98" "May-98" etc?