Skip to content

Performance issue when trying to use nixtla_client_plot #48

Description

@Gchirinos1996

I'm experimenting with nixtla_client_forecast() and nixtla_client_plot(). When I'm using monthly data and try to visualize the forecast, I get an error:

dat <- 
  data.frame(
    ds = seq.Date(from = as.Date("2018-01-01"), to = as.Date("2024-10-01"), by = "month"),
    y = rnorm(n = 82, mean =3, sd = 1)*500000,
    unique_id = rep("1",82)
  )

nixtla_client_fcst <- 
  nixtla_client_forecast(df = dat, 
                         h = 6, 
                         level = c(95),
                         add_history = T)

This throws an error:

nixtla_client_plot(df = dat, 
                   fcst = nixtla_client_fcst)

Error: Invalid input: time_trans works with objects of class POSIXct only

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions