na_viz() create a ggplot plot showing the percentage of NA in each column

na_viz(data)

Arguments

data

a data frame

Value

a ggplot object

Acknowledgment

na_viz() is another name for the excellent vis_miss() of {naniar}

Examples

if (FALSE) {
na_data <- data.frame(c1 = c(1, NA), c2 = c(NA, NA))
na_data %>% na_viz()
}