มุมมองที่เชื่อมโยงกันสำหรับการสรุปข้อมูล
บาง trace จะคำนวณสรุปเชิงสถิติในเบื้องหลังก่อนที่จะพล็อต เช่น histogram และ boxplot ดังนั้น หากเชื่อมโยง boxplot กับชาร์ตอื่น boxplot จะอัปเดตตามจุดที่ถูกเลือก ในแบบฝึกหัดนี้ จะสำรวจพฤติกรรมนี้โดยการเชื่อมโยง scatterplot ของแรงขับรวม (total thrust) กับความจุ LEO เข้ากับทั้ง boxplot และ histogram
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
การสร้างภาพข้อมูลเชิงโต้ตอบด้วย plotly ใน R ระดับกลาง
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# 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 = ___)