Separate Likert items that make up one sframe_scale() (unlike a
"matrix" item's rows, which are one question) are, by default, each
reported as their own single-item diverging chart. That scatters a
related batch of items (a satisfaction scale's 2-3 items, say) across
separate charts instead of showing them the way a Likert matrix or a
typical multi-item satisfaction grid is reported: one grouped chart, one
diverging bar per item, sharing an x scale and a legend. Applies only
when every item in the scale shares the same choice set. Scales that mix
response scales fall back to one chart per item.
Usage
sframe_plot_likert_scale(
items,
data,
choice_set,
title,
palette = c("web", "print")
)See also
sframe_plot_likert_matrix(), sframe_scale()
Other Chart functions:
plot.sframe_analysis_results(),
sframe_plot_cooccurrence(),
sframe_plot_cooccurrence_network(),
sframe_plot_correlation_matrix(),
sframe_plot_decision_ranking(),
sframe_plot_dematel_influence(),
sframe_plot_descriptives(),
sframe_plot_efa_loadings(),
sframe_plot_efa_scree(),
sframe_plot_group_comparison(),
sframe_plot_likert_matrix(),
sframe_plot_missingness(),
sframe_plot_ngram_frequency(),
sframe_plot_paired_comparison(),
sframe_plot_quality(),
sframe_plot_regression_diagnostics(),
sframe_plot_reliability(),
sframe_plot_sentiment(),
sframe_plot_term_frequency(),
sframe_plot_topics(),
sframe_plot_validity(),
sframe_plot_variable_distribution(),
sframe_plots,
theme_surveyframe()
Examples
# \donttest{
if (requireNamespace("ggplot2", quietly = TRUE)) {
demo <- sframe_demo("likert_scale")
scale <- sframe_get_scales(demo$instrument)[["organisation"]]
items <- sframe_get_items(demo$instrument)[scale$items]
agree <- sframe_get_choice_sets(demo$instrument)[["agree5"]]
sframe_plot_likert_scale(items, demo$responses, agree, scale$label)
}
# }