Raw-variable distribution panels: histogram, boxplot, and Q-Q
Source:R/plots.R
sframe_plot_variable_distribution.RdUnlike sframe_plot_descriptives(), which summarises skewness and
kurtosis across the variables in a sframe_descriptives_results() table, this
operates on one variable's raw values directly (the report table only
stores summary statistics, not the underlying vector), matching the
pattern sframe_plot_correlation_matrix() already uses for
report-independent, data-driven plots.
Usage
sframe_plot_variable_distribution(data, variable, palette = c("web", "print"))Value
A named list of 3 ggplot2 objects (histogram, boxplot,
qq), or NULL if fewer than 2 complete values remain.
See also
sframe_descriptives_results(), sframe_plot_descriptives()
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_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_plots,
theme_surveyframe()
Examples
# \donttest{
if (requireNamespace("ggplot2", quietly = TRUE)) {
demo <- sframe_demo("tourism_services")
panels <- sframe_plot_variable_distribution(demo$responses, "sat_1")
panels$histogram
}
# }