From the course: R: Interactive Visualizations with htmlwidgets
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Create interactive scatter charts and bubble charts - R Tutorial
From the course: R: Interactive Visualizations with htmlwidgets
Create interactive scatter charts and bubble charts
- [Instructor] Scatter charts, line charts, and bubble charts are very useful charts for visualizing a wide range of different datasets. Let's look at how we can create these in a highcharter. We'll open up our exercise file, scatter-and-bubble.R, and we'll minimize the environment because we don't need it for now. At the top of our script file, we can see we load the tidyverse. We have library("tidyverse"), which I'll run with Command + Enter, and you'll notice, we don't actually load the highcharter library, so let's do that. Let's load library("highcharter"). We'll hit Command + Enter, and, as with every time we load the highcharter library, we're reminded Highcharts is not free for commercial or governmental use. Now, to generate our scatter plot, we need some scatter data. So let's use read_csv to import a csv file and store it against the variable scatter_data. We can see printed in our console a summary of the columns in our dataset, and that's quite useful to just see. We can…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
What is the Highcharter library?7m 29s
-
(Locked)
Create interactive stacked bar charts5m 52s
-
(Locked)
Create interactive scatter charts and bubble charts7m
-
(Locked)
Create interactive time series6m 8s
-
(Locked)
Create interactive treemaps4m 38s
-
(Locked)
Create interactive choropleth maps9m 59s
-
(Locked)
Specify your own colors4m 34s
-
(Locked)
Modify tooltips in Highcharter6m 11s
-
(Locked)
Extract click information from Highcharter9m 27s
-
-
-
-