rstudio / dygraphs

R interface to dygraphs
http://rstudio.github.io/dygraphs
Other
364 stars 194 forks source link

Can ten-day time series be applied to dygraphs? #252

Open hoasxyz opened 3 years ago

hoasxyz commented 3 years ago

For example,

library(dygraphs)
dygraph(ts(cbind(mdeaths, fdeaths), start = c(1951, 1), end = c(1956, 1), frequency = 12)) # work
dygraph(ts(cbind(mdeaths, fdeaths), start = c(1951, 1), end = c(1952, 1), frequency = 36)) # error

There occurs an error when the time series data is of ten-day scale:

Error in dygraph(ts(cbind(mdeaths, fdeaths), start = c(1951, 1), end = c(1952, : Unsupported type passed to argument 'data'.

How can I solve it or dygraphs do not support ten-day time series?

> sessioninfo::platform_info()
 setting  value                       
 version  R version 4.0.3 (2020-10-10)
 os       Windows 10 x64              
 system   x86_64, mingw32             
 ui       RStudio                     
 language (EN)                        
 collate  English_United States.1252  
 ctype    English_United States.1252  
 tz       Asia/Taipei                 
 date     2020-11-30