Convert a Color to its rgb value in R Programming - col2rgb() Function
col2rgb() function in R Language is used to convert R color to RGB (red/green/blue). Syntax: col2rgb(col) Parameters: col: vector of any of the three kinds of R color specifications, i.e, either a color name (listed by colors()), a hexadecimal string of the form "#rrggbb" or "#rrggbbaa", or a positi