Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

paletteer_dynamic

Get dynamic palette by package and name


Description

Available package/palette combinations are available in the data.frame palettes_dynamic_names.

Usage

paletteer_dynamic(palette, n, direction = 1)

Arguments

palette

Name of palette as a string. Must be on the form packagename::palettename.

n

Number of colors desired. If omitted, returns complete palette.

direction

Either 1 or -1. If -1 the palette will be reversed.

Value

A vector of colors.

Examples

paletteer_dynamic("ggthemes_solarized::green", 8)
paletteer_dynamic("cartography::sand.pal", 20)

paletteer

Comprehensive Collection of Color Palettes

v1.3.0
GPL-3
Authors
See AUTHORS file.
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.