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 missing_data_report().

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_data()
  mr <- missing_data_report(demo$responses, demo$instrument)
  sframe_plot_missingness(mr)
}

# }