brewer_GG_col: Select R color brewer palette and display swatch and hexcodes...

View source: R/brewer_GG_col.R

brewer_GG_colR Documentation

Select R color brewer palette and display swatch and hexcodes see tidyExt vignette

Description

Select R color brewer palette and display swatch and hexcodes see tidyExt vignette

Usage

brewer_GG_col(
  nColours = 4,
  my_palette = "Paired",
  type = "div",
  nExtendColours = nColours,
  plot = T
)

Arguments

nColours

Number of colours to select from palette. These will be evenly spaced across palette.

my_palette

An RColourBrewer palette name (see RColorBrewer::display.brewer.all())

type

Type of palette - one of "seq" (sequential), "div" (diverging) or "qual" (qualitative)

nExtendColours

If more colours are desired than are available in the standard palette, specify total colours here.

plot

Default will plot the colour palette with the hex codes overlaid.


bansell/tidyExt documentation built on July 12, 2024, 12:58 p.m.