Makes a discrete colour palette of length n from the chosen technocolour palette.

technocolours(palette, n, interpolate = TRUE)

Arguments

palette

The name of the chosen palette. Choices are from: "bodied", "esther", "hotbot", "ibrik", "poodle", "rush", "x".

n

The integer length of the desired palette. Default value is the length of the specified palette.

interpolate

Boolean. Indicates whether sequential or diverging palettes should interpolate between colours; this argument is not available for qualitative palettes. Default value is TRUE.

Value

A vector of colours.

Examples

technocolours(palette = "rush", n = 6)
#> [1] "#874F92" "#F094BA" "#FFC561" "#91B356" "#5996C5" "#CD543C"
#> attr(,"class")
#> [1] "palette"
#> attr(,"name")
#> [1] "rush"