prepare_missing_values_graph: Prepares a Graph Displaying Missing Values in Panel Data

Description Usage Arguments Details Value Examples

View source: R/prepapre_missing_values_graph.R

Description

Displays a heatmap of missing value frequency across the panel

Usage

1
prepare_missing_values_graph(df, ts_id, no_factors = FALSE, binary = FALSE)

Arguments

df

Data frame containing the data.

ts_id

A string containing the name of the variable indicating the time dimension. Needs to be coercible into an ordered factor.

no_factors

A logical value indicating whether you want to limit the plot to logical and numerical variables. Defaults to FALSE.

binary

If set to TRUE, the plot uses a binary scale only high-lightening whether values are missing or not. Defaults to FALSE.

Details

This was inspired by a blog post of Rense Nieuwenhuis. Thanks!

Value

A ggplot2 plot.

Examples

1
2

joachim-gassen/ExPanDaR documentation built on April 15, 2021, 6:07 p.m.