suf_palette: SUffragette- and suffragist-inspired palettes

Description Usage Arguments Value Examples

View source: R/colors.R

Description

SUffragette- and suffragist-inspired palettes

Usage

1
suf_palette(name, n, type = c("discrete", "continuous"))

Arguments

name

Name of desired palette. Choices are: BottleRocket1, BottleRocket2, Rushmore1, london, oxon, CarolMan, hanwell, chelsea, classic

n

Number of colors desired. Number of colours available vary by type of palette. If omitted, uses all colours.

type

Either "continuous" or "discrete". Use continuous if you want to automatically interpolate between colours. @importFrom graphics rgb rect par image text

Value

A vector of colours.

Examples

1
2
3
4
5
6
7
suf_palette("london")
suf_palette("chelsea", n = 3)

# If you need more colours than normally found in a palette, you
# can use a continuous palette to interpolate between existing
# colours
suf_palette("classic", n = 6, type = "continuous")

alburezg/suffrager documentation built on Oct. 15, 2019, 2:35 p.m.