The gplots package has a function named col2hex() : library(gplots) col2hex("gold1") "#FFD700".
確定! 回上一頁