autoplot.fbl_vtl_ts {vital} | R Documentation |
Plot forecasts from a vital model
Description
Produces a plot showing forecasts obtained from a model applied to a vital object.
Usage
## S3 method for class 'fbl_vtl_ts'
autoplot(object, ...)
Arguments
object |
A fable object obtained from a vital model. |
... |
Further arguments ignored. |
Value
A ggplot2 object.
Author(s)
Rob J Hyndman
Examples
library(ggplot2)
aus_mortality |>
dplyr::filter(State == "Victoria") |>
model(ave = FMEAN(Mortality)) |>
forecast(h = 10) |>
autoplot() + scale_y_log10()
[Package vital version 1.1.0 Index]