categorizeData: categorizeData

Description Usage Arguments

View source: R/sankeydiagram.R

Description

Creates a dictionary of the nodes. Quantizes numeric variables.

Usage

1
2
3
4
5
6
7
8
categorizeData(
  data,
  weights,
  max.categories,
  share.values,
  label.show.varname,
  label.max.length
)

Arguments

data

A data.frame or list of variables.

weights

A numeric vector giving the weight of each row in data.

max.categories

When the number of unique values exceeds this value, the variable is quantized.

share.values

Whether the values in each variable are expected to be the same.

label.show.varname

Whether to include the variable name in the node label.

label.max.length

Maximum number of characters in the node label.


Displayr/flipPlots documentation built on April 13, 2021, 3:50 p.m.