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

Linked views for summarization

Some traces compute statistical summaries in the background prior to plotting, such as histograms and boxplots. Consequently, if you link a boxplot to another chart, the boxplot will be updated based on the points selected. In this exercise, you will explore this behavior by linking your scatterplot of total thrust against LEO capacity to both a boxplot and a histogram.

Bu egzersiz

Intermediate Interactive Data Visualization with plotly in R

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# SharedData object allowing selection of observations
shared_obs <- SharedData$new(lv2000)

# Scatterplot of to_thrust against leo_capacity
scatter <- shared_obs %>%
  plot_ly(x = ~leo_capacity, y = ~to_thrust) %>%
  add_markers()

# Create a boxplot of to_thrust
box <- shared_obs %>%
  ___(y = ___) %>%
  ___(name = "overall")

# Link the two plots
subplot(___, ___) %>%
  ___() %>%
  ___(on = ___)
Kodu Düzenle ve Çalıştır