View source: R/plot-statistics-single.R
plot_mosaic | R Documentation |
Plots a mosaic plot.
plot_mosaic(df, x, fill.by, clrp = "default", clrp.adjust = NULL, ...)
df |
A data.frame. |
x |
Character value. The variable mapped to the x-axis. |
fill.by |
Character value. The variable by which the mosaics are filled. |
clrp |
Character value. Specifies the color palette to be used to represent
groups of discrete variables. Run |
clrp.adjust |
Named character vector or NULL. If character, it adjusts the colors that are used to represent the groups. Names of the input vector must refer to the group and the respective named element denotes the color with which to represent the group. |
... |
Additional arguments given to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.