Skip to contents

[Stable]

Generate list of default color names.

Usage

getDefaultColors(n)

Arguments

n

The number of colors to return from the list.

Value

A character vector of color names, which is recycled as needed.

Details

Used for Pmetrics plots. The following list is recycled as necessary to generate the requested number of colors. c("red", "green", "blue", "brown", "black", "purple", "pink", "gold", "orange", "grey60")

Author

Michael Neely

Examples

getDefaultColors(6)
#> [1] "red"    "green"  "blue"   "brown"  "black"  "purple"