plotMosaicplot.Rd
Plots a mosaic plot of two grouping variables.
plotMosaicplot(object, grouping, fill_by, clrp = NULL, clrp_adjust = NULL, ...)
An object of class SPATA2
or, in case of S4 generics,
objects of classes for which a method has been defined.
Character value. The grouping variable that is plotted on the x-axis.
Character value. The grouping variable that is used to fill the mosaic.
Character value. Specifies the color palette to be used to represent
groups of discrete variables. Run validColorPalettes()
to obtain valid
input options.
Named character vector or NULL. If character, it adjusts the color palette that is 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()
Returns a ggplot that can be additionally customized according to the rules of the ggplot2 framework.