colorize: Generates hex colors for plotting

Description Usage Arguments

View source: R/colorize.r

Description

colorize uses colorRampPalette() to generate custom color scales for plotting.

Usage

1
2
3
4
5
6
7
colorize(
  data,
  clim = NULL,
  ncol = 64,
  cols = c("blue", "cyan", "green", "yellow", "orange", "red"),
  ...
)

Arguments

data

data to be converted to color scale

clim

values in data to limit color scale, as c(min, max)

ncol

number of colors to use between cmin and cmax

cols

colors to interpolate between

...

arguments to pass to colorRampPalette


benfasoli/uataq documentation built on Sept. 27, 2021, 9:29 p.m.