Description Usage Arguments Details Value Examples
Take two categorical variables and create a Marimekko/Mosaic plot from it.
1 2 |
df |
Data frame containing |
x |
Bare name of the variable for the x-axis. |
y |
Bare name of the variable for the y-axis and the fill. |
alpha_condition |
All cells meeting this condition will have the alpha set to 1. Cells not meeting the condition have the alpha set to 0.4. |
add_text |
Add cell count, cell proportion of total, or cell percentage of total. |
round_text |
Nr of decimals, only applies to proportions and percentages. |
The alpha_condition
enables to highlight specific parts of
the plot. This is especially helpful for highlighting marginal distributions.
An object of class ggplot2
.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.