rstudio / dygraphs

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

Failed with smooth line #229

Open hoasxyz opened 5 years ago

hoasxyz commented 5 years ago

I tried to use smooth lines for the same aim, but finally failed:

dySmoothPlotter <- function(dygraph) {
  dyPlotter(dygraph = dygraph,
            name = 'smoothPlotter',
            path = system.file("plotters/smooth-plotter.js",
                               package = "dygraphs"))
}

dygraph(ldeaths) %>% 
  dyRangeSelector() %>%
  dySmoothPlotter()

The file location is right, but these code do not draw any lines. Any solutions or hints?