carto_pal: CARTOcolor palettes

View source: R/carto_pal.R

carto_palR Documentation

CARTOcolor palettes

Description

Creates a color palette from CARTOcolor

Usage

carto_pal(n = NULL, name, ...)

Arguments

n

Number of different colors in the palette, minimum depending on palette (2 or 3), maximum depending on palette (7 or 11)

name

A palette name

...

Additional arguments for grDevices::colorRampPalette

Value

A character vector

Examples

my_colors1 = carto_pal(7, "Burg")
my_colors1

my_colors2 = carto_pal(17, "Burg")
my_colors2

my_colors3 = carto_pal(17, "Safe")
my_colors3

rcartocolor documentation built on May 31, 2023, 9:16 p.m.