ggplotly automagically converts many ggplot2 objects into interactive Plotly maps. ggplotly objects can then be piped into other Plotly functions for customizing their appearance.
- [Narrator] Plotly has the ability…to automatically convert a wide range of ggplot2 charts…into interactive plotly charts…with almost no effort at all.…Let's look at how we can go about doing that in our studio.…Inside of our exercise files we have a file…called GG plot two conversion dot R.…Let's open that up okay.…At the top of the script file we can see…we load the library tidyverse.…Let's run that with command enter,…and the tidyverse library simply loads…the most frequently used libraries…from the tidyverse ecosystem.…
Then on line three, I use the function load,…to load the dot R data set, which is called British weather.…Then, line five through 18, I use dplyr and then ggplot2…to build up a static chart.…Lets run this code with command enter to see how it looks.…So I have a nice,…attractive looking static ggplot2 output here.…I can see I have a scatter plot,…with straight lines joining my markers,…my X axis is labeled month, my Y axis is labeled mean daily…temperature difference.…
I can see this is specified on line 17 in my code by the way…
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.