getColorsVector: getColorsVector

View source: R/utilities.R

getColorsVectorR Documentation

getColorsVector

Description

This function returns a list of colors based on the RColorBrewer::brewer.pal() function

Usage

getColorsVector(numNeededColors = 0L)

Arguments

numNeededColors

The number of returned colors. If omitted it returns all available colors

Details

The colors are taken from the RColorBrewer::brewer.pal.info() sets with Set1, Set2, Set3 placed first.

Value

an array of RGB colors of the wanted size

Examples

colorsVector <- getColorsVector(17)


seriph78/COTAN documentation built on June 1, 2025, 4:57 p.m.