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

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.

Getting started

Package details

AuthorSilas Tittes [aut, cre]
Date of publication2016-06-20 07:55:10
MaintainerSilas Tittes <>
LicenseGPL (>= 2)
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:

Try the as.color package in your browser

Any scripts or data that you put into this service are public.

as.color documentation built on May 29, 2017, 3:59 p.m.