num2col: convert numeric values to color range:

View source: R/plotUtils.R

num2colR Documentation

convert numeric values to color range:

Description

convert numeric values to color range:

Usage

num2col(x, limits, q, pal, colf = viridis::viridis, n = 100)

Arguments

x

a numeric vector

limits

optional data limits for min/max color, every x lower/higher will get the extreme colors

q

auto-select limits by these two quantiles (argument prob in function quantile

pal

color palette, alternatively colf and n can be supplied

colf

color palette function

n

number of different colors


raim/segmenTools documentation built on April 25, 2024, 10:14 a.m.