colFunc: Function for making standardized color range

Description Usage Arguments Value

Description

Function for making standardized color range

Usage

1
colFunc(x, cols, nCols, valRange)

Arguments

x

A vector of numeric values for which you want to generate colors that indicate value.

cols

A palette or vector of colors that you want to plot in

nCols

The total number of colors you want in the absolute (standardized) scale

valRange

The range of values for which you want to generate colors. If unspecified, the function will use the range of x. Default is NULL.

Value

A vector of colors that relate the value of each element of x within the range specified by valRange.


gbradburd/popgenstuff documentation built on Oct. 16, 2021, 12:05 a.m.