get.pal: Get Pal

View source: R/pal.R

get.palR Documentation

Get Pal

Description

A helper function to retrieve a vector of colors derived from a given palette generating function.

Usage

get.pal(n = 10, pal = "greyscale", rev = FALSE)

Arguments

n

The number of colors desired.

pal

A character string of the pallet generating function, defaults to pals::ocean.haline

rev

A boolean used to flip the order of the colors.

Author(s)

Thomas Bryce Kelly


tbrycekelly/TheSource documentation built on Nov. 7, 2023, 12:48 a.m.