Tsibble and autoplot error with tbl_ts

Hello,
I'm trying to import some data with fredr or ecb packages.

I can load the data, but when I try to use autoplot using tsibble syntax I get:

Objects of type tbl_ts/tbl_df/tbl/data.frame not supported by autoplot.

With any other data I can convert or transform the records to tsibble format and perform analysis.
But with fredr or ecb data, I can't. I can't make a reproducible example because I don't manage very well the tbl_ts or tbl_df data structures.

What can I do?

I ran this:

library(ecb)
germany<-get_data("MNA.A.N.DE.W2.S1.S1.B.B1GQ._Z._Z._Z.EUR.V.N") 

germany%>% 
  mutate(tiempo=lubridate::ymd(obstime, truncated = 2L)) %>%
  tsibble(index=tiempo,key=obsvalue) %>% 
  autoplot()

Thanks for your time and interest, community.
Have a nice day.

Load the feasts package to get graphical functions for tsibble objects.

1 Like

The error was I didn't load the feasts package, and also, declaring key=obsvalue produced errors.
Thanks, R. Hyndman.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.