This function plots nested missing data using a slightly altered version of vis_miss.

plot_nested_missing(df, down_sample = 0.2)

Arguments

df

A dataframe as produced by account_for_nested_missing

down_sample

Numeric, the fraction by which to downsample the data. Defaults to 0.2.

Value

A plot of nested missingness

See also

account_for_nested_missing

Examples

## Code plot_nested_missing
#> function (df, down_sample = 0.2) #> { #> caserepdate <- NULL #> df %>% sample_frac(down_sample) %>% arrange(desc(caserepdate)) %>% #> vis_miss(warn_large_data = FALSE, sort_miss = TRUE, show_perc = TRUE, #> cluster = FALSE) + coord_flip() + theme(legend.position = "bottom") + #> theme(axis.text.x = element_text(angle = 0, hjust = 1), #> text = element_text(size = 22)) #> } #> <bytecode: 0x55630c222318> #> <environment: namespace:ETSMissing>