productplots (version 0.1.1)

prodcalc: Calculate frequencies.

Description

Calculate frequencies.

Usage

prodcalc(data, formula, divider = mosaic(), cascade = 0, scale_max = TRUE, na.rm = FALSE)

Arguments

data
input data frame
formula
formula specifying display of plot
divider
divider function
cascade
cascading amount, per nested layer
scale_max
Logical vector of length 1. If TRUE maximum values within each nested layer will be scaled to take up all available space. If FALSE, areas will be comparable between nested layers.
na.rm
Logical vector of length 1 - should missing levels be silently removed?

Examples

Run this code
prodcalc(happy, ~ happy, "hbar")
prodcalc(happy, ~ happy, "hspine")

Run the code above in your browser using DataCamp Workspace