brewer.pal.Safe: Return color brew palettes, but fail hard if number of...

View source: R/fcn_miscGGplot.R

brewer.pal.SafeR Documentation

Return color brew palettes, but fail hard if number of requested colors is larger than the palette is holding.

Description

Internally calls 'brewer.pal(n, palette)', checking 'n' beforehand.

Usage

brewer.pal.Safe(n = 3, palette = "Set1")

Arguments

n

Number of colours

palette

Name of palette (e.g. "set1")

Value

character vector of colors


PTXQC documentation built on March 22, 2022, 5:08 p.m.