Gallery/Proportions & surveys
Proportions & surveys
Proportions, cross-tabs and Likert scales, in the spirit of ggstats::gglikert and stat_prop.
Proportions & surveys
Diverging Likert chart
Five-point Likert items as diverging stacked bars centred on the neutral answer.
ggstats::gglikert()Proportions & surveys
Stacked proportions by group
100% stacked bars with percentage labels, n per bar, chi-squared test and Cramér's V.
ggstatsplot::ggbarstats()Proportions & surveys
Mosaic plot with Pearson residuals
Tile areas proportional to cell counts, shaded by Pearson residuals from independence.
vcd::mosaic(shade = TRUE)Proportions & surveys
Proportions with confidence intervals
A sorted dot plot of group proportions with Wilson 95% confidence intervals.
ggstats::stat_prop() + geom_errorbar()Proportions & surveys
Cross-table with standardized residuals
A contingency table as a heatmap, coloured by standardized residuals from independence.
ggstats::ggtable() / stat_cross()