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
        )
  }
arni-magnusson/gplots documentation built on Sept. 18, 2024, 12:44 p.m.