prodcalc: Calculate frequencies.

Description Usage Arguments Examples

View source: R/calculate.R

Description

Calculate frequencies.

Usage

1
2
3
4
5
6
7
8
9
prodcalc(
  data,
  formula,
  divider = mosaic(),
  cascade = 0,
  scale_max = TRUE,
  na.rm = FALSE,
  offset = offset
)

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

1
2
3
4
5
6
## Not run: 
library(productplots)
prodcalc(happy, ~ happy, "hbar", offset = 0.005)
prodcalc(happy, ~ happy, "hspine", offset = 0.01)

## End(Not run)

ggmosaic documentation built on Feb. 24, 2021, 1:06 a.m.