lepidochroma_display {lepidochroma} | R Documentation |
Palette preview
Description
Displays a preview of a palette or a set of palettes with the specified number of colours in a plot.
Usage
lepidochroma_display(
name = NULL,
n = NULL,
type = c("all", "discrete", "continuous"),
colourblind_only = FALSE
)
Arguments
name |
Palette name (see the |
n |
Number of colours to display. It is an optional argument, if it is not specified, the plot will display all the available colours. |
type |
The type of palettes to be displayed ( |
colourblind_only |
A logical value. If |
Value
No return value, called for side effects.
Examples
# Discrete palette
lepidochroma_display("parthenos", 3)
# Continuous palette
lepidochroma_display("battus", 30)