categorizeData: categorizeData

View source: R/sankeydiagram.R

categorizeDataR Documentation

categorizeData

Description

Creates a dictionary of the nodes. Quantizes numeric variables.

Usage

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 Feb. 26, 2024, 12:40 a.m.