Closed cat630 closed 4 years ago
You need to provide a vector, not a single value. There is an example in the documentation of tsclust
:
require(scales)
t <- seq(Sys.Date(), len = length(series[[1L]]), by = "day")
gpc <- plot(pc.tadp, time = t, plot = FALSE)
gpc + ggplot2::scale_x_date(labels = date_format("%b-%Y"),
breaks = date_breaks("2 months"))
If I provide a param time in plot (~,time=100), it always returns " Length mismatch between values and timestamps").
here is the source code.
timestamp consistency