BaşlayınÜcretsiz Başlayın

Searching for clusters

Persistent selection is a great way to explore potential clusters in your data set, especially when paired with a color selector gadget. In this exercise, your task is to use persistent selection, hover selection, and color to explore potential clusters in scatterplots of 2017 HPI against the percentage of home ownership and the employment rate in a state.

plotly and crosstalk have already been loaded for you, and the linked scatterplots are stored in the linked_plots object.

Bu egzersiz

Intermediate Interactive Data Visualization with plotly in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Use highlight() to (i) enable persistent selection, (ii) enable hover selection, and (iii) add a color selector widget.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Enable persistent hover selection and a color selector 
linked_plots %>%
  ___(___ = ___, ___ = ___, ___ = ___)
Kodu Düzenle ve Çalıştır