example(auto.arima) # Creates an Arima object called "fit"
as.data.frame(forecast(fit,h=20))
But what exactly are you trying to plot? There's a lot more in the
Arima object than it would make sense to transfer to a single graph.
Hope this helps,
Michael
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
The canonical way would be to create a fortify.arima() function that extracts the relevant information from the arima object (and original data) and outputs a data.frame. I don't know of such a function.
See fortify.lm() for an example (and the naming conventions).
Jean-Olivier Irisson
---
Observatoire Océanologique
Station Zoologique, B.P. 28, Chemin du Lazaret
06230 Villefranche-sur-Mer
Tel: +33 04 93 76 38 04
Mob: +33 06 21 05 19 90
http://jo.irisson.com/