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.

AuthorSilas Tittes [aut, cre]
Date of publication2016-06-20 07:55:10
MaintainerSilas Tittes <silas.tittes@gmail.com>
LicenseGPL (>= 2)
Version0.1

View on CRAN

Files

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

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.