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.
Extract click information from Highcharter - R Tutorial
From the course: R: Interactive Visualizations with htmlwidgets
Extract click information from Highcharter
- [Instructor] Shiny allows interactive web applications to be built using the R language. Let's see how we can embed a Highcharter HTML widget into a Shiny app and extract click information. Let's start by seeing the skeleton of my Shiny app. In my exercise files, I'll open server.R. I'll minimize the environment because I don't need to see it for now. And let's run our app so we can see what we're going to be building. So our app includes a single Highchart visualization, which includes a scatter plot called Series 1 and a line chart called Series 2. And what we want is for information to be shown at the top when I mouse over any of the markers, and if I click on any of the markers in the scatter plot, I want information about that marker to be shown. We need to plan this together. Let's talk about how we go about doing that before we write the code. At the time of recording, unfortunately, the version of Highcharter available from CRAN does not support extracting click events from…
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
-
-
-
-