getCols: Map values to colors

Description Usage Arguments Value Author(s) Examples

View source: R/hclustView.R

Description

Map values to colors

Usage

1
getCols(x, palette = 1)

Arguments

x

A numeric vector.

palette

diverge, rainbow, sequential

Value

A vector of colors corresponding to input vector.

Author(s)

Wubing Zhang

Examples

1
getCols(1:4)

Example output

        1         2         3         4 
"#7FC97F" "#FFD58C" "#C2488F" "#666666" 

MAGeCKFlute documentation built on Nov. 8, 2020, 5:40 p.m.