lepidochroma {lepidochroma}R Documentation

Colour palettes inspired by butterflies

Description

Returns a colour palette from the lepidochroma collection.

Usage

lepidochroma(name, n = NULL)

Arguments

name

Palette name (see the name column in the data frame returned by lepidochroma_palettes() for a list of available options). This argument is case insensitive.

n

Number of colours to return. It is an optional argument: if it is not specified, all available colours for the specified palette will be returned. For continuous palettes (see the output of lepidochroma_palettes()) this parameter can take any number >= 2. For discrete palettes, its maximum value is limited to their number of colours.

Value

A character vector with colours as hexadecimal strings.

Examples

# Discrete palette
lepidochroma("attacus", 4)
# Continuous palette
lepidochroma("morpho", 30)


[Package lepidochroma version 0.1.0 Index]