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

Extract click information from Highcharter - R Tutorial

From the course: R: Interactive Visualizations with htmlwidgets

Start my 1-month free trial

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…

Contents