tidyverts / feasts

Feature Extraction And Statistics for Time Series
https://feasts.tidyverts.org/
291 stars 23 forks source link

ggsave does not work with gg_tsresiduals #149

Closed sillasgonzaga closed 2 years ago

sillasgonzaga commented 2 years ago

Code:

p <- tsibbledata::aus_production %>%
  model(ETS(Beer)) %>%
  gg_tsresiduals()

ggsave("residuals.png", p)

Error:

Saving 9.1 x 3.26 in image
Error in UseMethod("grid.draw") : 
  no applicable method for 'grid.draw' applied to an object of class "c('gg_tsensemble', 'gg')"

What is the best way to save this kind of plots?

mitchelloharawild commented 2 years ago

Fixed, thanks!