1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Interactive Data Visualization with plotly in R

Exercise

Adding dropdown menus

Indirect selection is a powerful tool that can facilitate exploration when overplotting is present. In the lesson, you saw this with overlaid time series plots. In this exercise, you will consider how indirect selection can help you "call out" specific points on a scatterplot.

plotly and crosstalk have already been loaded for you.

Instructions 1/2

undefined XP
  • 1
    • Create a SharedData object and add a drop-down menu, titled "Select a state", to enable indirect selection by state.
  • 2
    • Create a SharedData object and add a drop-down menu, titled "Select a region", to enable indirect selection by region.