I have been trying to find the seasonal indexes from a time series using the forecast package in R, but with no success. Basically, I need to find the seasonal indexes like this image below. It's two tables from wikipedia https://en.wikipedia.org/wiki/Seasonality
I'm trying this way:
time_series <- ts(values, start = 2019, frequency =12)
autoplot(decompose(time_series)) + ggtitle("Decomposition of the series")
time_series_decompose <- decompose(time_series)
seasonal_index <- rep(time_series_decompose$figure, 3)
But the output has negative number, and it doesn't make sense. May you guys help me, please?