mcriPalette: A MCRI palette generator

Description Usage Arguments Value Examples

View source: R/palettes.R

Description

These are a handful of colour palettes based on the MCRI branding.

Usage

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

Arguments

name

Name of desired palette. Choices are: MCRI

n

Number of colors desired. If omitted, uses all colours.

type

Either "continuous" or "discrete". Use continuous if you want to automatically interpolate between colours.

Value

A vector of colours.

Examples

1
2
3
4
5
6
7
mcriPalette("symbol")

# If you need more colours than normally found in a palette, you
# can use a continuous palette to interpolate between existing
# colours
pal <- mcriPalette(21, name = "symbol", type = "continuous")
image(volcano, col = pal)

lazappi/mcriPalettes documentation built on Aug. 15, 2017, 12:38 a.m.