Generate mapping for labeling percentages

aes_percentage(relative_to, digits = 0, sep = "")

Arguments

relative_to

defines proportion that should be calculated, relative to 'intersection', 'group', or 'all' observed values

digits

number of digits to show (default=0)

sep

separator separator between the digit and percent sign (no separator by default)