Creates a mosaic plot showing rectangular segments sized by both height and width parameters.
1 2 3 |
.data |
The data frame or tibble containing your data |
x.group |
The column name used to label segments on the x-axis |
y.group |
The column name used to label segments on the y-axis |
values |
The column name showing the value to use to determine the size of the segments |
fill.values |
Fill colors to use for y.group. |
segment.label |
For each segment, show 'value', 'percent', or 'none'? Default is 'value'. |
segment.format |
Format to use to display segment values as a text string. Uses 'sprintf()'. |
total.label |
Show the total for each x.group? Default is 'FALSE'. |
total.format |
Format to use to display totals as a text string. Uses 'sprintf()'. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.