elgreco_palette: An El Greco palette generator

Description Usage Arguments Value Examples

View source: R/colors.R

Description

Color palettes from El Greco paintings.

Usage

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

Arguments

name

Name of desired palette. Choices are: AndrewFrancis1, AndrewFrancis2, Annunciation1, Annunciation2, Caridad1, Caridad2, Disrobing1, Disrobing2, Immaculate1 , Immaculate2 , Laocoon1, Laocoon2, Marriage1, Marriage2, Shepherds1, Luke1, Luke2, Toledo1, Toledo2, John1, John2

n

Number of colors desired. All color schemes are derived from El Greco paintings.

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
8
elgreco_palette("Laocoon1")
elgreco_palette("Shepherds1")
elgreco_palette("Toledo1")

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

markushlang/elgreco documentation built on June 10, 2020, 12:39 a.m.