maize_pal: A palette generator inspired by the diversity of maize...

Description Usage Arguments Value Examples

View source: R/colors.R

Description

A palette generator inspired by the diversity of maize varieties

Usage

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

Arguments

name

Name of desired palette. Choices are: Anthocyanins1, Anthocyanins2, RubyGold, Sweetest, GlassGem, PodCorn, HighlandMAGIC, MaizAzul, JimmyRed, FloweringTime, HopiBlue, Painted, MaizMorado, OaxacaGreen

n

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

type

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

Value

A vector of colors.

Examples

1
2
3
4
5
6
7
maize_pal("Anthocyanins1")
maize_pal("HopiBlue")
maize_pal("HighlandMAGIC", 5)

# If you need more colors than normally found in a palette, you
# can use a continuous palette to interpolate between existing
# colors

AndiKur4/maizepal documentation built on Oct. 7, 2020, 4:34 a.m.