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.