assignColorToCondition.2: Assign a random color to unique elements in a vector

Description Usage Arguments

View source: R/assignColorToCondition.2.R

Description

This function assigns color to a unique cases in a vector. It also allows a supply of color palette in the form of vector of colors which R will use assign colors to the condition, instead of being randomly selected.

Usage

1
assignColorToCondition.2(vec, ColrVecProvided = FALSE, ColorVec = NULL)

Arguments

vec

A character or factor vector which will be converted into colors

ColrVecProvided

A boolean indicarting whether to use supplied color palette

ColorVec

A character or factor vector of unique colors (palette)


msxakk89/dat documentation built on Aug. 3, 2020, 6:39 p.m.