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. One function instead of
four, since the underlying comparison (an outcome split by a grouping
factor) and the data shape needed to plot it are identical across all
four 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 two groups remain after removing missing values, or ggplot2 is
unavailable.
Examples
# \donttest{
if (requireNamespace("ggplot2", quietly = TRUE)) {
demo <- sframe_demo_data()
res <- run_analysis_plan(demo$responses, demo$instrument)
sframe_plot_group_comparison(res$rq_visit_bi, demo$responses)
}
#> NULL
# }