The htmlwidgets package provides a framework for easily creating R bindings to JavaScript libraries. Widgets created using the framework can be:
- Used at the R console for data analysis just like conventional R plots (via RStudio Viewer)
- Seamlessly embedded withinhttp://rmarkdown.rstudio.com{R Markdown} documents andhttp://shiny.rstudio.com{Shiny} web applications.
- Saved as standalone web pages for ad-hoc sharing via email, Dropbox, etc.
To get started creating your own HTML widgets, see the documentation available in the package vignettes:
vignette("htmlwidgets-intro")
vignette("htmlwidgets-sizing")
vignette("htmlwidgets-advanced")
Source code for the package is available on GitHub:
https://github.com/ramnathv/htmlwidgets{https://github.com/ramnathv/htmlwidgets}