palettes: Augmented color palette functions

palettesR Documentation

Augmented color palette functions

Description

Palette functions return a function that generates colors. These _plus() functions are designed to work like their counterparts in the scales package, with the exception that additional standard colors are appended to the original palettes. The additional colors are not pretty but some effort has been made to avoid overly similar colors.

Usage

brewer_pal_plus(palette = 1, direction = 1)

manual_pal_plus(values)

Arguments

palette

If a string, will use that named palette. If a number, will index into the list of palettes of appropriate type

direction

Sets the order of colors in the scale. If 1, the default, colors are as output by brewer.pal. If -1, the order of colors is reversed.

values

vector of values to be used as a palette.

Details

The manual_pal_plus() is useful mapping specific colors to certain features.


aaronwolen/metafiler documentation built on Feb. 16, 2024, 12:41 a.m.