Hi all:
I met a question about plotting the predict values of time series.
 
The data is treering which belongs to R.
I want to predict the next 3 years(1980,1981,1982) result.

pred<-predict(ar(treering),n.ahead=3)
plot(treering)
lines(pred$pred,col="red",lwd=3)
 
I can only find a little bit red point at the end of the plot,but can't see it 
clearly.
Maybe I should "subset" part of the original data via "window" function to make 
the predicted result visible:
plot(window(treering,start = 1900))
lines(pred$pred,col="red",lwd=3)
 
It's better than the first plot,but still can't see the predicted result 
clearly.

Any suggestion from you are welcome.
Many thanks.

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to