view_palette_collection | R Documentation |
Visualizes each palette in a collection using 'scales::show_col()'.
view_palette_collection(
collection,
type = "discrete",
n = 20,
border = "grey80"
)
collection |
Name of the collection (e.g., "sb", "ohsu") |
type |
One of "discrete" or "continuous" |
n |
If type = "continuous", number of interpolated colors to show |
border |
Border color (passed to 'scales::show_col()') |
view_palette_collection("sb") # discrete
view_palette_collection("sb", type = "continuous", n = 40) # continuous
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.