स्कैटर प्लॉट्स के साथ missing डेटा की जाँच
ggplot2 में स्कैटर प्लॉट में missing मान डिफ़ॉल्ट रूप से हट जाते हैं, और एक चेतावनी दिखाई देती है.
हम स्कैटर प्लॉट में missing मानों को दिखा सकते हैं geom_miss_point() का उपयोग करके — यह एक खास ggplot2 geom है जो missing मानों को प्लॉट में शिफ्ट कर देता है, और उन्हें वैरिएबल के न्यूनतम मान से 10% नीचे दिखाता है.
आइए oceanbuoys डेटासेट के साथ इस visualization का अभ्यास करें.
यह अभ्यास पाठ्यक्रम का हिस्सा है
R में Missing Data से निपटना
अभ्यास निर्देश
- wind east west (
wind_ew) और air temperature में missingness को एक्सप्लोर करें, औरgeom_miss_point()का उपयोग करके इसे दिखाएँ. - humidity और air temperature में missingness को एक्सप्लोर करें, और
geom_miss_point()का उपयोग करके इसे दिखाएँ.
इंटरैक्टिव व्यावहारिक अभ्यास
इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।
# Explore the missingness in wind and air temperature, and
# display the missingness using `geom_miss_point()`
ggplot(oceanbuoys,
aes(x = ___,
y = ___)) +
geom_miss_point()
# Explore the missingness in humidity and air temperature,
# and display the missingness using `geom_miss_point()`
ggplot(___,
aes(x = ___,
y = ___)) +
geom_miss_point()