This is a demonstration of how to use a shinychord to put a dygraph into a shiny app.
Dygraphs are used to plot time-series, although we are using a dataframe to supply the data.
For this app, we use a static dataframe, wx_ames
, that describes the weather in Ames, Iowa, for the month of January 2014. This data was obtained from the Weather Underground API, using Alex Shum's rwunderground package.
To see how we can use a dynamic dataframe, see the readr & dygraphs demo app.
The code for the function ch_dygraph
, used to generate the shinychord, can be found at Github, as can its package shinychord.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.