Boxplot with jittered points, shared across every runner whose result
carries vars = c(group_column, outcome_column): t_test_ind,
mann_whitney, kruskal_wallis, and anova_one. 1 function instead of
4, since the underlying comparison (an outcome split by a grouping
factor) and the data shape needed to plot it are identical across all
4 tests, and only the inferential statistic differs.
Usage
sframe_plot_group_comparison(result, data, palette = c("web", "print"))Value
A ggplot2 object, or NULL if the columns are missing, fewer
than 2 groups remain after removing missing values, or ggplot2 is
unavailable.
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_descriptives(),
sframe_plot_efa_loadings(),
sframe_plot_efa_scree(),
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")
res <- run_analysis_plan(demo$responses, demo$instrument)
sframe_plot_group_comparison(res$rq_visit_bi, demo$responses)
}
# }