make_color_scheme: Expands colors of any brewer.pal-scheme to _n_ colors

Description Usage Arguments Value See Also Examples

View source: R/make_color_scheme.R

Description

Expands colors of any brewer.pal-scheme to n colors

Usage

1

Arguments

name

name of the color scheme, e.g. 'Paired', 'Spectral' or 'BrBG'.

n

number of colors needed.

Value

returns a vector of colors which can be used in various plots/plotting functions.

See Also

For scheme-options see RColorBrewer::brewer.pal.info().

Examples

1
make_color_scheme("Paired", 15)

wsteenhu/microbiomer documentation built on March 11, 2021, 6:05 p.m.