colorCount: colorCount()

Description Usage Arguments Note Author(s)

Description

Returns an integer representing the number of unique categories from all specified fields. This value should serve as a guide for users specifying colors in the makeFlow() function.

Usage

1
colorCount(data, classFields)

Arguments

data

An object of class data.frame in which all specified classFields (or column names) can be found.

classFields

A vector of the column names intended to be represented in a makeFlow() diagram. Each element must be a string.

Note

Relies on Hadley Wickham's dplyr package.

Author(s)

Alex J. Krebs


makeFlow documentation built on May 1, 2019, 9:25 p.m.