R/col.fn.R

Defines functions col.fn

#Currently used as a helper function in converting the colors from the venn 
#diagrams 
col.fn <-
function(col, alpha=0.3) {
    col<- grDevices::hcl(col * 360, 130, 60)
    col <- grDevices::col2rgb(col)/255
    col <- grDevices::rgb(col[1, ], col[2, ], col[3, ], alpha)
    col
}

Try the qdap package in your browser

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

qdap documentation built on May 31, 2023, 5:20 p.m.