getColors: Define colour scheme.

View source: R/IRSfunctions.R

getColorsR Documentation

Define colour scheme.

Description

getColors returns a vector with colours.

Usage

getColors(n, levels = NA, colSc = "normal")

Arguments

n

Number of colour classes, used if levels are NA.

levels

Levels defining the classes, if NA.

colSc

Colour scheme: [normal|normal_reversed|normalwhite|sharp|sharp100|sharp_redgreenblue|sharp_cyanbrown|any of the RColorBrewer color palettes|vector of colours]; defaults to normal which uses topo.colors(); sharp* requires levels to be set that cross 0 (100); if colSc is not any of the pre-defined strings for colour schemes, colSc is returned and assumed to be a vector that defines colours

Value

Vector of colours.


fronzek/IRSanalysis documentation built on Jan. 28, 2023, 2:38 a.m.