get_colors: Get colors from Brewer pallette

Description Usage Arguments Value Examples

View source: R/plotting.R

Description

Get colors from Brewer pallette

Usage

1
get_colors(n = 11, set = "Spectral")

Arguments

n

number of colors to generate. Set to NULL to view color set names

set

Character name of set to use, see RColorBrewer::brewer.pal

Value

A character vector of hex color codes

Examples

1
2
3
get_colors(16)
show_colors(get_colors(64), FALSE)
get_colors(NULL)

iamamutt/mejr documentation built on May 18, 2019, 1:27 a.m.