Skip to contents

Missing-data report plot: missingness rate by item

Usage

sframe_plot_missingness(x, palette = c("web", "print"))

Arguments

x

An sframe_missing_data_report object from sframe_missing_data_results().

palette

One of "web" or "print". See sframe_brand().

Value

A ggplot2 object. When no item has missing values, this is a short "no missing responses" message rather than an empty bar chart.

Examples

# \donttest{
if (requireNamespace("ggplot2", quietly = TRUE)) {
  demo <- sframe_demo("tourism_services")
  mr <- sframe_missing_data_results(demo$responses, demo$instrument)
  sframe_plot_missingness(mr)
}
# }