Skip to contents

Same sharing rationale as sframe_plot_item_chart().

Usage

sframe_plot_scale_chart(scores, label, palette = c("web", "print"))

Arguments

scores

Numeric vector of scale scores (already averaged/summed).

label

Character. Scale label, used as the x-axis title.

palette

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

Value

A ggplot2 object, or NULL if ggplot2 is unavailable or scores is empty.

Examples

# \donttest{
if (requireNamespace("ggplot2", quietly = TRUE)) {
  demo <- sframe_demo_data()
  scored <- score_scales(demo$responses, demo$instrument)
  sframe_plot_scale_chart(scored$satisfaction, "Satisfaction")
}

# }