Description Usage Arguments Value Author(s) See Also Examples
autoplot takes an object of type ts or mts and creates a ggplot object suitable for usage with stat_forecast.
fortify.ts takes a ts object and converts it into a data frame (for usage with ggplot2).
1 2 3 4 5 6 7 8 9 10  | ## S3 method for class 'ts'
autoplot(object, series = NULL, ...)
## S3 method for class 'mts'
autoplot(object, colour=TRUE, facets=FALSE, ...)
## S3 method for class 'ts'
autolayer(object, colour=TRUE, series=NULL, ...)
## S3 method for class 'mts'
autolayer(object, colour=TRUE, series=NULL, ...)
## S3 method for class 'ts'
fortify(model,data, ...)
 | 
object | 
 Object of class “ts” or “mts”.  | 
series | 
 Identifies the timeseries with a colour, which integrates well with the functionality of geom_forecast.  | 
facets | 
 If TRUE, multiple time series will be faceted (and unless specified, colour is set to FALSE). If FALSE, each series will be assigned a colour.  | 
colour | 
 If TRUE, the time series will be assigned a colour aesthetic  | 
model | 
 Object of class “ts” to be converted to “data.frame”.  | 
data | 
 Not used (required for fortify method)  | 
... | 
 Other plotting parameters to affect the plot.  | 
None. Function produces a ggplot graph.
Mitchell O'Hara-Wild
1 2 3 4 5 6  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.