ColToRgb(col, alpha = FALSE)
colors
()),
a hexadecimal string of the form "#rrggbb" or "#rrggbbaa", or an integer i meaning palette()[i].
Non-strcol2rgb
, defined in order to follow this package's naming conventions.col2rgb
, RgbToCol
ColToRgb("peachpuff")
ColToRgb(c(blu = "royalblue", reddish = "tomato")) # names kept
ColToRgb(1:8)
Run the code above in your browser using DataLab