One violin per variable in a sframe_descriptives_results() table, built from
the underlying response data rather than from the summary skewness and
kurtosis numbers, so the reader sees the actual shape (asymmetry,
multimodality, tails) instead of reading it off a bar height. Each
variable is standardised (z-scored) before plotting so variables on
different original scales (a 5-point Likert item next to a 0-100 slider)
share one comparable y-axis. Standardising is a linear transform and does
not change skewness. Each violin's subtitle-free panel keeps the
variable's skewness value in its axis label. Grouped sframe_descriptives_results()
output (one row per variable per split_by group) is faceted by group.
Usage
sframe_plot_descriptives(x, data, palette = c("web", "print"))Arguments
- x
An
sframe_descriptives_reportobject fromsframe_descriptives_results().- data
The same data.frame passed to
sframe_descriptives_results(). Required:xonly carries the summary table, not the raw values the violins need.- palette
One of
"web"or"print". Seesframe_brand().
See also
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_efa_loadings(),
sframe_plot_efa_scree(),
sframe_plot_group_comparison(),
sframe_plot_likert_matrix(),
sframe_plot_likert_scale(),
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("tourism_services")
dr <- sframe_descriptives_results(demo$responses, variables = c("sat_1", "sat_2"))
sframe_plot_descriptives(dr, demo$responses)
}
# }