-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
autoplot.fbl_ts giving error when h=1 #400
Labels
bug
Something isn't working
Comments
This appears to be a general problem whenever library(fable)
#> Loading required package: fabletools
tsibble::tsibble(
time = 1:20,
value = rnorm(20),
index = time
) |>
model(NAIVE(value)) |>
forecast(h = 1) |>
autoplot()
#> Warning in min(x, na.rm = na.rm): no non-missing arguments to min; returning
#> Inf
#> Warning in max(x, na.rm = na.rm): no non-missing arguments to max; returning
#> -Inf
#> Warning in min(x, na.rm = na.rm): no non-missing arguments to min; returning
#> Inf
#> Warning in max(x, na.rm = na.rm): no non-missing arguments to max; returning
#> -Inf
#> Warning in min(x, na.rm = na.rm): no non-missing arguments to min; returning
#> Inf
#> Warning in max(x, na.rm = na.rm): no non-missing arguments to max; returning
#> -Inf Created on 2024-05-13 with reprex v2.1.0 |
robjhyndman
changed the title
autoplot giving transform_date error
autoplot.fbl_ts giving error when h=1
May 13, 2024
More minimal reprex without forecasting / autoplot. Keeping it here for now since it could be user error of ggdist on my part. library(ggplot2)
library(ggdist)
library(distributional)
tibble::tibble(time = 0, value = dist_normal()) |>
ggdist::median_qi(value, .width = c(0.8, 0.95)) |>
ggplot(aes(x = time, ymin = .lower, ymax = .upper, colour_ramp = .width, fill_ramp = .width)) +
ggdist::stat_interval()
#> Warning in bandwidth_dpi(): Bandwidth calculation failed.
#> > Falling back to `bandwidth_nrd0()`.
#> i This often occurs when a sample contains many duplicates, which suggests that
#> a dotplot (e.g., `geom_dots()`) or histogram (e.g., `density_histogram()`,
#> `stat_slab(density = 'histogram')`, or `stat_histinterval()`) may better
#> represent the data.
#> Caused by error in `bw.SJ()`:
#> ! sample is too sparse to find TD
#> Warning in bandwidth_dpi(): Bandwidth calculation failed.
#> > Falling back to `bandwidth_nrd0()`.
#> i This often occurs when a sample contains many duplicates, which suggests that
#> a dotplot (e.g., `geom_dots()`) or histogram (e.g., `density_histogram()`,
#> `stat_slab(density = 'histogram')`, or `stat_histinterval()`) may better
#> represent the data.
#> Caused by error in `bw.SJ()`:
#> ! sample is too sparse to find TD Created on 2024-05-13 with reprex v2.0.2 |
Thanks, fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Created on 2024-04-12 with reprex v2.1.0
Session info
The text was updated successfully, but these errors were encountered: