Vizualizări legate pentru sumarizare
Unele tipuri de grafice calculează sumare statistice în fundal înainte de a fi afișate – de exemplu histogramele și boxplot-urile. Prin urmare, dacă legi un boxplot de un alt grafic, acesta se va actualiza în funcție de punctele selectate. În acest exercițiu, vei explora acest comportament legând graficul de dispersie al forței totale de propulsie față de capacitatea LEO atât de un boxplot, cât și de o histogramă.
Acest exercițiu face parte din cursul
Vizualizare interactivă avansată a datelor cu plotly în R
Exercițiu interactiv practic
Încearcă acest exercițiu completând acest cod de exemplu.
# 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 = ___)