as.color: Assign Random Colors to Unique Items in a Vector

The as.color function takes an R vector of any class as an input, and outputs a vector of unique hexadecimal color values that correspond to the unique input values. This is most handy when overlaying points and lines for data that correspond to different levels or factors. The function will also print the random seed used to generate the colors. If you like the color palette generated, you can save the seed and reuse those colors.

Author
Silas Tittes [aut, cre]
Date of publication
2016-06-20 07:55:10
Maintainer
Silas Tittes <silas.tittes@gmail.com>
License
GPL (>= 2)
Version
0.1

View on CRAN

Man pages

as.color
Create a unique set of colors that matched the unique set of...

Files in this package

as.color
as.color/NAMESPACE
as.color/R
as.color/R/as.color.R
as.color/MD5
as.color/DESCRIPTION
as.color/man
as.color/man/as.color.Rd