plot_mosaic: Plot mosaic plot

View source: R/plot-statistics-single.R

plot_mosaicR Documentation

Plot mosaic plot

Description

Plots a mosaic plot.

Usage

plot_mosaic(df, x, fill.by, clrp = "default", clrp.adjust = NULL, ...)

Arguments

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 validColorPalettes() to obtain valid input options.

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 ggmosaic::geom_mosaic()


kueckelj/confuns documentation built on June 28, 2024, 9:19 a.m.