tidyverts / fabletools

General fable features useful for extension packages
http://fabletools.tidyverts.org/
89 stars 31 forks source link

autoplot.fbl_ts legend problem when h=1 #406

Open robjhyndman opened 1 week ago

robjhyndman commented 1 week ago

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