search for: colormatch

Displaying 1 result from an estimated 1 matches for "colormatch".

Did you mean: color_match
2009 Oct 13
2
General means of matching a color specification to an official R color name
...LL)) 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 way to search a table created by this function, and identify the n-closest colors based upon some reasonable criteria? What I hope for is something like this: colorMatch <- function(hex = NULL, n, plot = HOPEFULLY) { df.rgb <- colorSpecTable(sort = ~red+green+blue) # master table # now search for the n closest matches of hex in df.rgb$hex.code # perhaps hex should be converted into a different color space 1st # eventually would like to display...