# NOT RUN {
dat <- data.frame(x = c(rnorm(100, 2, 4),
rnorm(100, 6, 1),
rnorm(100, 8, 2)),
group = c(rep('A', 100),
rep('B', 100),
rep('C', 100)),
date = rep(seq(as.Date("2020-01-01"),
as.Date("2020-04-09"),
'days'),
3))
make_dygraph(dt = dat,
value = 'x',
date = 'date')
make_dygraph(dt = dat,
value = 'x',
groups = 'group',
date = 'date')
# }
Run the code above in your browser using DataLab