Skip to contents

xxxx

Usage

GetColorsForConditions(conds, pal = NULL)

Arguments

conds

The extended vector of samples conditions

pal

A vector of HEX color code that form the basis palette from which to build the complete color vector for the conditions.

Value

A vector composed of HEX color code for the conditions

Author

Samuel Wieczorek

Examples

data(Exp1_R25_pept, package="DaparToolshedData")
GetColorsForConditions(design.qf(Exp1_R25_pept)$Condition)
#> [1] "#E41A1C" "#E41A1C" "#E41A1C" "#377EB8" "#377EB8" "#377EB8"
GetColorsForConditions(design.qf(Exp1_R25_pept)$Condition, ExtendPalette(2))
#> [1] "#E41A1C" "#E41A1C" "#E41A1C" "#377EB8" "#377EB8" "#377EB8"