R/color.colored.R

Defines functions color.colored

Documented in color.colored

##' Returns the vector of colors associated with the factor levels.
##' 
##' @param x A colored factor
##' @param \dots Additional arguments (unused)
##' @return A (character) vector of colors, having the same length as x
##' @method color colored
##' @author David C. Norris
##' @seealso \code{\link{colored}}
##' @keywords category color
##' @export
color.colored <- function(x, ...){
  unlist(attr(x,'colors')[x])
}

Try the VizOR package in your browser

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

VizOR documentation built on May 30, 2017, 5:29 a.m.