vis_miss(oceanbuoys)
# Look at the missingness in the variables
miss_var_summary(oceanbuoys)
if (FALSE) {
# Look at the missingness in air temperature and humidity
library(ggplot2)
p <-
ggplot(oceanbuoys,
aes(x = air_temp_c,
y = humidity)) +
geom_miss_point()
p
# for each year?
p + facet_wrap(~year)
# this shows that there are more missing values in humidity in 1993, and
# more air temperature missing values in 1997
# see more examples in the vignette, "getting started with naniar".
}
Run the code above in your browser using DataLab