| plot.r4vn_tabts | R Documentation |
Plot an R4VN tabts result
## S3 method for class 'r4vn_tabts'
plot(
x,
which = c("series", "forecast", "its", "counterfactual", "decomposition", "acf",
"pacf", "residual"),
type = NULL,
file = NULL,
width = NULL,
height = NULL,
dpi = NULL,
...
)
x |
An |
which |
Plot name such as |
type |
Optional alias for |
file |
Optional output path. Supported extensions are |
width, height |
Figure width and height in inches when saving. |
dpi |
Raster resolution when saving PNG/JPEG/TIFF files. |
... |
Reserved for future use. |
Invisibly returns the plot object that is displayed or saved.
data(dengue_ts)
x <- tabts(cases, time = month, data = dengue_ts,
model = "arima", order = c(1, 0, 1), forecast = 6,
show = FALSE)
plot(x, "series")
plot(x, type = "forecast")
plot(x, "forecast", file = file.path(tempdir(), "forecast.png"),
width = 8, height = 5, dpi = 300)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.