feasts icon indicating copy to clipboard operation
feasts copied to clipboard

ggsave does not work with gg_tsresiduals

Open sillasgonzaga opened this issue 2 years ago • 0 comments

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?

sillasgonzaga avatar May 06 '22 03:05 sillasgonzaga