Hi @sbac. You have to load the ggfortify library to extend the autoplot function. And ggfortify support the ts class but not tbl_ts. So, you have to change the class to ts by as.ts function.
library(ggplot2)
library(tsibble)
library(ggfortify)
y <- tsibble(Year = 2015:2019,
Observation = c(123,39,78,52,110),
index = Year)
autoplot(as.ts(y))
The tsibble package is part of a family of packages, and the functions for graphics are in the feasts package. So just load the feasts package as well and you can autoplot a tsibble object.
library(ggplot2)
library(tsibble)
library(feasts)
#> Loading required package: fabletools
#>
#> Attaching package: 'fabletools'
#> The following object is masked from 'package:stats':
#>
#> decompose
y <- tsibble(Year = 2015:2019,
Observation = c(123,39,78,52,110),
index = Year)
autoplot(y, Observation)
I would not recommend ggfortify. It tends to overwrite functions in other packages, often with inferior functions. The autoplot functions in the feasts package (for tsibble objects) and in the forecast package (for ts objects) are better.