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
        )
  }

Try the gplots package in your browser

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

gplots documentation built on Oct. 6, 2024, 1:07 a.m.