powered by
plot_palette() plots a palette from a vector of colour values (name or hex).
plot_palette()
plot_palette(values, label = TRUE, square = FALSE)
The input (invisibly).
[character]
Vector of named or hex colours.
[bool]
Do you want to label the plot or not?
If values is a named vector the names are used for labels, otherwise, the values.
values
Display palette as square?
plot_palette(c("#5FE756", "red", "black")) plot_palette(c("#5FE756", "red", "black"), square = TRUE)
Run the code above in your browser using DataLab