tidyverts / fabletools

General fable features useful for extension packages
http://fabletools.tidyverts.org/
89 stars 31 forks source link

Extend point_forecast option to plotting functions #163

Closed mitchelloharawild closed 4 years ago

mitchelloharawild commented 4 years ago
library(fpp3)
eggs <- as_tsibble(fma::eggs)
fit <- eggs %>% model(RW(log(value) ~ drift()))
fc <- fit %>% forecast(h=50)
autoplot(fc, eggs, point_forecast = c("mean", "median"))

Use the linetype guide to indicate the point_forecast method.