discrete_palette | R Documentation |
This function generates a vector of colors for a discrete variable, given a specified palette name.
discrete_palette(n = 10, palette = c("Ju1", "De1", "ggplot"))
n |
An integer specifying the number of colors to generate. |
palette |
A character vector specifying the palette to use. |
A character vector of color codes.
discrete_palette()
discrete_palette(n=20, palette = "ggplot")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.