File: col2hex.R

package info (click to toggle)
gplots 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,316 kB
  • sloc: makefile: 2
file content (9 lines) | stat: -rw-r--r-- 169 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
col2hex <- function(cname)
  {
    colMat <- col2rgb(cname)
    rgb(
        red=colMat[1,]/255,
        green=colMat[2,]/255,
        blue=colMat[3,]/255
        )
  }