plot_missing: Visualize missing value cells in dataframes.

Description Usage Arguments Value

View source: R/plotters.R

Description

For plotting a table of a dataset where missingness is mapped to cell/tile color. Remember the distinction between actual and structural missingness due to the data-format and impossible values. You can easily explore the patterns in missigness visually with this function by sorting the dataset differently before plotting.

Usage

1
2
plot_missing(data, tile_colors = c("#f2f4fb", "#c30000"),
  text_size = 9, variables_max_n = 1000)

Arguments

data

A dataframe.

text_size

An integer size for the variable names on the y-axis.

variables_max_n

The maximum number of variables that can be plotted. Prevents unwanted slow plotting.

color_values

A character vector of two color hex values. The second one is for the missing values.

Value

A ggplot2 object of the visualized table.


eteppo/tvs-project documentation built on Aug. 13, 2019, 8:53 a.m.