Skip to contents

Create segmented total bar charts (100% stacked bars) that show proportional breakdowns within categories. Perfect for displaying composition data where each bar represents 100% and segments show relative proportions.

Details

This module creates segmented total bar charts using ggplot2, where:

  • Each bar represents 100% of the total for that category

  • Segments within bars show relative proportions

  • Colors distinguish different segments

  • Labels can show percentages and/or raw counts

The visualization approach is inspired by the ggsegmentedtotalbar package (https://github.com/ozancanozdemir/ggsegmentedtotalbar) by Ozancan Ozdemir. This implementation uses a clean ggplot2-based approach optimized for clinical research workflows within the jamovi environment

Super classes

jmvcore::Analysis -> ClinicoPath::jjsegmentedtotalbarBase -> jjsegmentedtotalbarClass