display_all: View all Palettes available

View source: R/NatParksPalettes.R

display_allR Documentation

View all Palettes available

Description

Function for viewing all palettes available in NatParksPalettes.

Usage

display_all(
  n,
  sequential = FALSE,
  colorblind_only = FALSE,
  direction = 1,
  override.order = FALSE
)

Arguments

n

Number of requested colors. If n is left blank, default palette is returned.

sequential

Should palettes displayed all at once, or one at a time. Default is all at once (FALSE).

colorblind_only

Should only colorblind friendly palettes be returned? Default is set to FALSE.

direction

Sets order of colors. Default palette is 1. If direction is -1, palette color order is reversed

override.order

Colors are picked from palette to maximize readability and aesthetics. This means that colors are not always selected in sequential order from the full palette. If override.order is set to TRUE, colors are selected in sequential order from the full palette instead. Default is FALSE.

Value

Plot of all color palettes available

Examples

# All Palettes
display_all(sequential = FALSE, colorblind_only = FALSE)

# All Colorblind Palettes
display_all(sequential = FALSE, colorblind_only = TRUE)

# 5 Colors of all Palettes
display_all(5, sequential = FALSE, colorblind_only = FALSE)

NatParksPalettes documentation built on Oct. 10, 2022, 1:06 a.m.