cond.col.vec: Creates a color scale for the levels in a vector, then...

View source: R/hmfns.R

cond.col.vecR Documentation

Creates a color scale for the levels in a vector, then returns a vector assigning a color to each element of the input vector.

Description

Creates a color scale for the levels in a vector, then returns a vector assigning a color to each element of the input vector.

Usage

cond.col.vec(cond, colfn = rainbow, ...)

Arguments

cond

A vector that can be coerced to a factor.

colfn

A function that returns a color map for each level in cond.

...

Additional arguments to colfn.

Value

A vector of colors corresponding to the elements of cond.


kewiechecki/moreComplexHeatmap documentation built on June 8, 2025, 5:18 a.m.