Description Usage Arguments Examples
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.
1 | missing_plot(data, group_variable, fill_color = "steelblue")
|
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. |
1 2 3 | missing_plot(airquality, "Month")
missing_plot(airquality, "Month", "Orange")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.