Skip to contents

Plots the table produced by get_proportion_charge() as a stacked proportion bar chart, with percentage labels.

Usage

plot_charge_proportions(input, variable, label_size = 3)

Arguments

input

Output of get_proportion_charge().

variable

Grouping column for the x-axis (tidy-evaluated), e.g. Condition.

label_size

Text size for the percentage labels (geom_text); mirrors the report's PlotTextLabelSize param.

Value

A ggplot2 stacked bar chart.

Examples

if (FALSE) { # \dontrun{
plot_charge_proportions(get_proportion_charge(counts_charge_condition), Condition)
} # }