hiliteColor {dynamicnetwork} | R Documentation |
Used as a color function for taking a vector of booleans (like infection status) and create a vector of color names to be used in a plot.
hiliteColor(values)
values |
vector of boolean values |
Replaces all TRUE values with the string 'Red', all FALSE values with the string 'Black'.
character vector of color names
skyebend@skyeome.net
## The function is currently defined as function (values) { values <- replace(values, values == TRUE, "Red") values <- replace(values, values == FALSE, "Black") return(values) }