missing_plot: Visualize missing values in a data.frame

Description Usage Arguments Examples

Description

This function looks at missing values in a data.frame in relation to a specific group and creates a ggplot2 object. Quite helpful to identify missing not-at-random.

Usage

1
missing_plot(data, group_variable, fill_color = "steelblue")

Arguments

data

a data.frame

group_variable

a character string naming the column of the data.frame that contains information on grouping (e.g. treatment group, etc)

fill_color

the plot will show a gradient from white to this color. By default, steelblue will be used.

Examples

1
2
3
missing_plot(airquality, "Month")

missing_plot(airquality, "Month", "Orange")

dlindholm/doctoR documentation built on May 15, 2019, 9:18 a.m.