miss_plot: Missing data barplot with ggplot2.

View source: R/missing_data.R

miss_plotR Documentation

Missing data barplot with ggplot2.

Description

Returns a ggplot2 object of the missing data.

Usage

miss_plot(data, percent = T, case = T, reverse = F)

Arguments

data

(data.frame) Data.frame.

percent

(lgl scalar) Whether to use percent or raw counts.

case

(lgl scalar) Whether to plot missingness for cases or variables.

reverse

(lgl sclr) Whether to count datapoints instead of missing datapoints.

Examples

test_data = miss_add_random(iris)
miss_plot(test_data)
miss_plot(test_data, percent = F) #raw count
miss_plot(test_data, case = F) #variables
miss_plot(test_data, case = F, percent = F) #variables, raw
miss_plot(test_data, reverse = T) #reverse

Deleetdk/kirkegaard documentation built on April 1, 2024, 2:23 a.m.