Libraries are installed with install.packages(). Libraries are loaded with library(). Library versions need to be thought about.
- [Narrator] Installing htmlwidget libraries…is generally as simple as installing any package.…Most htmlwidgets are available through CRAN.…Which means they can easily be installed…with the install dot packages function.…You simply provide the name of your package…as a string to the function install dot packages.…You're fully advised not to use the install dot packages…function inside of a script file.…Instead, use the function in the console.…This is because you don't want to accidentally…install a new version of the library…as you may suffer from unexpected incompatibility issues.…
Sometimes, you'll be interested in using…an htmlwidget library which isn't available through CRAN.…This is typically for one of two reasons.…Firstly, the developers of the library…may not have submitted their package to CRAN.…Some developers choose never to deploy their package to CRAN…because they don't want responsibility…of being a CRAN package maintainer…or a developer may not have got round…to deploying to CRAN yet.…The second reason that you may want to install…
AuthorMartin John Hadley
Start by learning to manage packages and structure data for visualizations with the tidyverse and the pipe operator. Then there is an important question: Which library should you choose? The course introduces five popular options: Leaflet, Plotly, Highcharter, visNetwork, and DataTables (DT). Instructor Martin Hadley shows how to use these libraries to create scattergeo, choropleth, and geolines maps; stacked bar charts, scatter charts, bubble charts, and heat maps; treemaps and time series charts; interactive networks and graphs; and responsive, interactive data tables. Plus, learn how to customize your visualizations with legends and tooltips, and extract click information for Shiny apps.
- Installing htmlwidgets
- Selecting the best htmlwidget
- Creating interactive maps with Leaflet
- Creating interactive charts with Plotly and Highcharter
- Creating interactive networks with visNetwork
- Creating interactive tables with DT
Skill Level Intermediate
Data Visualization Tips and Trickswith Matt Francis2h 14m Intermediate
DC.js for Data Science Essential Trainingwith Emma Saunders5h 3m Intermediate
1. Getting Started with htmlwidgets
2. Creating Interactive Maps with Leaflet
3. Creating Interactive Charts with Plotly
4. Creating Interactive Charts with Highcharter
5. Creating Interactive Networks with visNetwork
6. Creating Interactive Tables
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.