powered by
autoplot
ts
mts
stat_forecast
fortify.ts takes a ts object and converts it into a data frame (for usage with ggplot2).
fortify.ts
"autoplot"(object, ...) "autoplot"(object, facets=FALSE, ...) "fortify"(model,data, ...)
plot.ts
fortify
library(ggplot2) autoplot(USAccDeaths) lungDeaths <- cbind(mdeaths, fdeaths) autoplot(lungDeaths) autoplot(lungDeaths, facets=TRUE)
Run the code above in your browser using DataLab