fabletools icon indicating copy to clipboard operation
fabletools copied to clipboard

autoplot.fbl_ts legend problem when h=1

Open robjhyndman opened this issue 8 months ago • 0 comments

Legend shading is incorrect when h=1. Perhaps related to #400

library(fable)

fit <- tsibble::tsibble(
    time = 1:20,
    value = rnorm(20),
    index = time
  ) |> 
  model(NAIVE(value)) 

fit |> forecast(h = 1) |> autoplot() 


fit |> forecast(h = 2) |> autoplot() 

Created on 2024-06-21 with reprex v2.1.0

robjhyndman avatar Jun 21 '24 03:06 robjhyndman