MulaiMulai sekarang secara gratis

Linking a bar chart to a scatterplot

In the lesson, you saw how to link a dotplot of summary statistics to a scatterplot, but you can link other types of charts in a similar way. In this exercise, you will link a bar chart to a bubble chart.

The data are stored in us2017, and plotly and crosstalk have been loaded for you.

Latihan ini adalah bagian dari kursus

Intermediate Interactive Data Visualization with plotly in R

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Create a shared data object keyed by division
shared_div <- SharedData$new(___, key = ___)
Edit dan Jalankan Kode