num2color: num2color

Description Usage Arguments Value Author(s)

Description

Scale a continuous vector into color representation

Usage

1
2
num2color(x, cp = colorpanel(100, low = "blue", mid = "black", high =
  "yellow"))

Arguments

x

a numeric vector

cp

the color spectrum (default: colorpanel(100, low = 'blue', mid = 'black', high = 'yellow'))

Value

a character vector of HTML-style RGB colors

Author(s)

Wuming Gong, gongx030@umn.edu


gongx030/tcm documentation built on June 4, 2019, 7:26 p.m.