Upset plots are a way of visualising common sets, gg_miss_upset`` shows the number of missing values for each of the sets of data. The default option ofgg_miss_upsetis taken fromUpSetR::upset- which is to use up to 5 sets and up to 40 interactions. Here, settingnsets = 5means to look at 5 variables and their combinations. The number of combinations or ratherintersectionsis controlled bynintersects. If there are 40 intersections, there will be 40 combinations of variables explored. The number of sets and intersections can be changed by passing argumentsnsets = 10to look at 10 sets of variables, andnintersects = 50` to look at 50 intersections.

gg_miss_upset(data, ...)

Arguments

data

data.frame

...

arguments to pass to upset plot - see ?UpSetR::upset

Value

a ggplot visualisation of missing data

Examples

# NOT RUN { gg_miss_upset(airquality) gg_miss_upset(pedestrian) gg_miss_upset(riskfactors) gg_miss_upset(riskfactors, nsets = 10) gg_miss_upset(riskfactors, nsets = 10, nintersects = 10) # }