autoplot.lts | R Documentation |
Plots the graph of latent time series using ggplot2
## S3 method for class 'lts' autoplot(object, to.unit = NULL, background = "white", scales = "free", line.type = NULL, line.color = NULL, point.size = NULL, point.shape = NULL, title = NULL, title.size = 15, axis.label.size = 13, axis.tick.size = 11, axis.x.label = NULL, axis.y.label = NULL, facet.label.size = 13, facet.label.background = "#003C7D33", ncol = 1, nrow = NULL, ...)
object |
A |
to.unit |
A |
background |
A |
scales |
Same as |
line.type |
A |
line.color |
A |
point.size |
A |
point.shape |
A |
title |
A |
title.size |
An |
axis.label.size |
An |
axis.tick.size |
An |
axis.x.label |
A |
axis.y.label |
A |
facet.label.size |
An |
facet.label.background |
A |
ncol |
An |
nrow |
An |
... |
other arguments passed to specific methods. |
A ggplot2
panel containing the graph of latent time series.
Wenchao
model = AR1(phi = .99, sigma2 = 1) + WN(sigma2=1) res = gen_lts(100, model) autoplot(res) # Modify the graph aesthetics autoplot(res, line.color = c('blue', 'green', 'black'), point.size = c(1,1,1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.