[R] Error plotting the results form a Holt Winters model with no seasonality

Bert Gunter bgunter@4567 @end|ng |rom gm@||@com
Fri Jun 19 19:32:16 CEST 2020


OS? R version? package versions?

Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Fri, Jun 19, 2020 at 10:02 AM Jeff Reichman <reichmanj using sbcglobal.net>
wrote:

> r-help
>
>
>
> I'm trying to use the TSstudio library to plot a forecast created from a
> Holt Winters model and I get the following error:
>
>
>
> Error in `[<-`(`*tmp*`, n + 1, , value = data.frame(x = tmp[["x"]][n],  :
>
>   subscript out of bounds
>
>
>
> So looking through the package documentation I tried the package's example
>
>
>
> data(USgas)
> library(forecast)
> fit <- ets(USgas)
> fc<- forecast(fit, h = 60)
> plot_forecast(fc)
>
>
>
> and get the same error
>
>
>
> Error in `[<-`(`*tmp*`, n + 1, , value = data.frame(x = tmp[["x"]][n],  :
>
>   subscript out of bounds
>
>
>
> So I am at a loss to figure out my error when the example gives me the same
> error.
>
>
>
> Sincerely
>
>
>
> Jeff Reichman
>
>
>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list