reds | R Documentation |
reds
is useful for getting a set of reds from pink to
brick for graphs.
reds(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 reds.
reds(10)
# Try using scales::show_col() to visualize the colors, ex:
scales::show_col(reds(10))
scales::show_col(reds(10, shade = "lighter"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.