plot_palette | R Documentation |
plot_palette()
plots a palette from a vector of colour values (name or hex).
plot_palette(values, label = TRUE, square = FALSE)
values |
Vector of named or hex colours. |
label |
Do you want to label the plot or not? If |
square |
Display palette as square? |
The input (invisibly).
plot_palette(c("#5FE756", "red", "black"))
plot_palette(c("#5FE756", "red", "black"), square = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.