IniziaInizia gratis

Using facets to explore missingness

Because geom_miss_point() is a ggplot geom, you can use it with ggplot2 features like faceting.

This means we can rapidly explore the missingness and stay within the familiar bounds of ggplot2.

Questo esercizio fa parte del corso

Dealing With Missing Data in R

Visualizza il corso

Istruzioni dell'esercizio

  • Explore the missingness in wind and air temperature, and display the missingness using geom_miss_point(). Facet by year to explore this further.
  • Explore the missingness in humidity and air temperature, and display the missingness using geom_miss_point(). Facet by year to explore this further.

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Explore the missingness in wind and air temperature, and display the 
# missingness using `geom_miss_point()`. Facet by year to explore this further.
ggplot(___,
       aes(x = ___,
           y = ___)) + 
  ___() + 
  facet_wrap(~year)

# Explore the missingness in humidity and air temperature, and display the 
# missingness using `geom_miss_point()` Facet by year to explore this further.
ggplot(___,
       aes(___,
           ___)) + 
  ____() + 
  facet_wrap(~year)
Modifica ed esegui il codice