1 min read

dygraphs + widgeframe

The two examples below show how to properly embed a dygraphs widget inside a blog post using the widgetframe package.

Dygraph

library(dygraphs)
library(widgetframe)
## Loading required package: htmlwidgets
ts <- dygraph(nhtemp, main = "New Haven Temperatures")
frameWidget(ts, height = 350, width = '95%')