Plotly handles large number of data points well, and allows opacity to be used to show the "crowdiness" of a scatter chart. There are a huge variety of markers available in scatter charts within Plotly. add_markers is used for both scatter and bubblechart
- [Instructor] Let's have a look at how to create…both scatter charts and bubble charts inside of Plotly.…In the Exercise Files we have a file…called scatter-and-bubble.R.…Let's open that up and see what we have.…I'm going to minimize my environment,…because I don't need it for these exercises.…And at the top of the script file…we can see I load the tidyverse library…with Command + Enter.…This loads the standard libraries from the tidyverse,…which includes readr,…which I use in both line four and eight…to import data from my CSV files…with the function read_csv.…
So, let's run this code with Command + Enter…and let's have a look at our data by typing…scatter_data %>% View().…Then hit Command + Enter…and we can see our data contains an x and a y column.…So, these are our coordinates.…Then we have a type.…We also have some chromosome data, as well.…So, this data feels like it should be plotted…on the scatter plot,…so let's make a scatter plot with Plotly.…
To do that, we first we need to load the Plotly library.…So, I'll go to the top of the script file…
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
Creating Interactive Presentations with Shiny and Rwith Martin Hadley1h 53m 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.