show_palette | R Documentation |
Displays a horizontal strip of colors using 'scales::show_col()', useful for continuous palettes or clean comparisons.
show_palette(palette, border = "grey80")
palette |
A character vector of hex color codes. |
border |
Optional border color for color boxes. |
show_palette(get_palette("sb", "deep", type = "continuous", n = 20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.