Convert color names to hex RGB strings
col2hex(cname)
Color name(s)
Character vector giving the hex color code translation of the provided color names.
col2rgb, colors, rgb
col2rgb
colors
rgb
# NOT RUN { col2hex(c("red","yellow","lightgrey")) # }
Run the code above in your browser using DataCamp Workspace