colorCount {makeFlow} | R Documentation |
colorCount()
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
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
[Package makeFlow version 1.0.2 Index]