Plot time series decomposition components using ggplot
## S3 method for class 'decomposed.ts' autoplot(object, labels = NULL, range.bars = NULL, ...) ## S3 method for class 'stl' autoplot(object, labels = NULL, range.bars = TRUE, ...) ## S3 method for class 'StructTS' autoplot(object, labels = NULL, range.bars = TRUE, ...) ## S3 method for class 'seas' autoplot(object, labels = NULL, range.bars = NULL, ...) ## S3 method for class 'mstl' autoplot(object, ...)
object |
Object of class “ |
labels |
Labels to replace “seasonal”, “trend”, and “remainder”. |
range.bars |
Logical indicating if each plot should have a bar at its
right side representing relative size. If |
... |
Other plotting parameters to affect the plot. |
Returns an object of class ggplot
.
Mitchell O'Hara-Wild
library(ggplot2) co2 %>% decompose() %>% autoplot() nottem %>% stl(s.window = "periodic") %>% autoplot() ## Not run: library(seasonal) seas(USAccDeaths) %>% autoplot() ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.