Using htmlwidgets in Shiny apps

Keyboard Shortcuts

There are many libraries that can be used to embed rich interactive charts and plots into your shiny apps, with the ability to zoom and filter charts and provide additional information through the use of tooltips. Learn how to use plotly to create beautiful looking interactive data visualisations in your shiny app dashboard using this online video.

- htmlwidgets provide a huge variety of different types…of interactive visualizations that can easily be embedded…into both our markdown documents and Shiny Apps.…Before we go into how to embed htmlwidget libraries…into your Shiny Apps, let's have a look…at the htmlwidget's collection of libraries.…So, if we go to htmlwidgets.org, we can see…the different libraries available to us.…The two that we're interested in here…are "highcharter" and "plotly".…

Plotly is a fantastic library.…It provides the ability to convert…almost any GG plot to graphic, into an interactive chart…for embedding inside of your Shiny Apps.…Here we can see a call to the function "ggplot",…and then we use the plotly function "ggplotly",…which outputs this beautiful, rich interactive graphic…with tool tips.…It's also possible with plotly charts…to zoom in and out of your data.…

Unfortunately, at the time of recording, March 2016,…a new version of ggplot2 has just been released,…and Plotly is not yet compatible with this.…However, in the next few days,…

Resume Transcript Auto-Scroll

Author

Released

4/29/2016

Analyzing big data is great, but not if you can't share your results. In this course, Martin Hadley shows how to create interactive presentations of large data sets with R, RStudio, and Shiny, an R-based tool for producing interactive, web-ready data visualizations. Learn why these tools are important to data scientists, how to configure and install them, and how to use them to make your findings more clear and engaging.

Discover the different types of presentations you can make right out of the box with R Markdown templates (built right into RStudio) and how to customize the templates with CSS. Find out how to register for RPubs to deploy RStudio presentations for sharing, and then go beyond the basics with Shiny—adding interactivity and creating embeddable dashboards without the need for HTML or JavaScript.

This is an exciting course for analysts who want to increase the relevance and visibility of their work. Make sure to watch the knowledge checks at the end of each chapter to test your new skills.