R/col2hex.R

col2hex <- function(cname)
  {
    colMat <- col2rgb(cname)
    rgb(
        red=colMat[1,]/255,
        green=colMat[2,]/255,
        blue=colMat[3,]/255
        )
  }

Try the gplots package in your browser

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

gplots documentation built on May 2, 2019, 5:50 p.m.