powered by
Displays a heatmap of missing value frequency across the panel
prepare_missing_values_graph(df, ts_id, no_factors = FALSE, binary = FALSE)
Data frame containing the data.
A string containing the name of the variable indicating the time dimension. Needs to be coercible into an ordered factor.
A logical value indicating whether you want to limit the plot to logical and numerical variables. Defaults to FALSE.
FALSE
If set to TRUE, the plot uses a binary scale only high-lightening whether values are missing or not. Defaults to FALSE.
TRUE
A ggplot2 plot.
ggplot2
This was inspired by a blog post of Rense Nieuwenhuis. Thanks!
# NOT RUN { prepare_missing_values_graph(russell_3000, ts_id="period") prepare_missing_values_graph(russell_3000, ts_id="period", binary = TRUE) # }
Run the code above in your browser using DataLab