Hi I try to plot a candlestick plot + roller average line.
library(xts)
library(dygraphs)
data(sample_matrix)
m <- tail(sample_matrix, n = 32)
dygraph(m) %>%
dyCandlestick() %>%
dyRoller(showRoller = T, rollPeriod = 5)
yields this:
What I want is candlestick plot + roller average line, like this: