display_carto_all: CARTOcolor palettes viewer

Description Usage Arguments Value Examples

View source: R/display_carto_all.R

Description

Displays a set of color palettes from CARTOcolor

Usage

1
display_carto_all(n = NULL, type = "all")

Arguments

n

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

type

Type of the palette, could be "quantitative", "diverging", "qualitative", "aggregation", or "all

Value

A character vector

Examples

1
2
3
4
5
display_carto_all()
display_carto_all(type = "quantitative")
display_carto_all(type = c("diverging", "qualitative", "aggregation"))
display_carto_all(3, type = "quantitative")
display_carto_all(7, type = "quantitative")

rcartocolor documentation built on Feb. 9, 2018, 6:10 a.m.