purples | R Documentation |
purples
is useful for getting a set of purples from lavender to
aubergine for graphs.
purples(ncolors, shade = "regular")
ncolors |
number of colors desired |
shade |
the shade of colors to use, which can be "regular" (default), "darker", or "lighter" |
a character vector of colors
# Create a set of 10 purples.
purples(10)
# Try using scales::show_col() to visualize the colors, ex:
scales::show_col(purples(10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.