SMAC-Group/simts

plotting function for unevenly spaced time series

Yuming-Zhang opened this issue · 1 comments

plotting function for unevenly spaced time series

gts function now can handle unevenly spaced data, here are two examples.

times <- sort(sample(1:100, size = 25))
data <- rnorm(length(times))
ts <- gts(data, uneven = TRUE, time_indices = times)
plot(ts)

times <- c('01/02', '01/04', '01/05','01/15', '01/23', '01/24','01/27')
data <- rnorm(length(times))
ts <- gts(data,start=1,freq=1,unit_time='day',uneven=TRUE,time_indices = times, time_format = '%m/%d')
plot(ts)