Displaying 1 result from an estimated 1 matches for "lungdeath".
Did you mean:
lungdeaths
2017 Oct 18
1
dygraphs, multiple graphs and shiny
...arises when I am combining a number of dygraphs into one plot. If I am just in an RNotebook, if you look at:
https://stackoverflow.com/questions/30509866/for-loop-over-dygraph-does-not-work-in-r
the solution to have the plot shown from a RNotebook is code like this:
> library(dygraphs)
> lungDeaths <- cbind(mdeaths, fdeaths)
> res <- lapply(1:2, function(i) dygraph(lungDeaths[, i]))
> htmltools::tagList(res)
and if you put that into an RNotebook and knit it, it works. Okay in order to have a reproducible example, I now try to create a Shiny App using that example, and the tem...