search for: col2hex

Displaying 2 results from an estimated 2 matches for "col2hex".

2008 Jul 11
2
Problems with Package Installation.
...text html latex example balloonplot text html latex example bandplot text html latex example barplot2 text html latex example boxplot.n text html latex example col2hex text html latex example colorpanel text html latex example heatmap.2 text html latex example hist2d text html latex example lowess t...
2009 Oct 13
2
General means of matching a color specification to an official R color name
...owing some examples I found in the archives and the wiki, I wrote this little function to create a table of official R colors and sort it if desired: colorSpecTable <- function(col = colors(), sort = NULL){ require(gplots) rgbcodes <- t(col2rgb(col)) names <- col hex <- col2hex(col) df <- data.frame(name = names, hex.code = hex, rgbcodes) # additional elements for other color spaces could be added if (!identical(sort, NULL)) df <- sort.data.frame(df, by = sort) } Note that sort.data.frame is from the R-wiki and is appended below. Is there a clever w...