R/col2hex.R

Defines functions col2hex

Documented in col2hex

col2hex <- function(cname)
  {
    colMat <- col2rgb(cname)
    rgb(
        red=colMat[1,]/255,
        green=colMat[2,]/255,
        blue=colMat[3,]/255
        )
  }
r-gregmisc/gplots documentation built on March 3, 2020, 4:47 a.m.