| palette_viridis | R Documentation |
Generate colors from the viridis palette.
palette_viridis(n, alpha = 1, option = "viridis")
n |
Number of colors to generate. |
alpha |
Transparency (0-1). |
option |
Viridis option: "viridis", "magma", "plasma", "inferno", "cividis". |
Character vector of colors.
palette_viridis(5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.