Get the closest colour in R from the plotrix package using color.id
Better than the previous post! From later in the same thread of some R mailing list
> require(“plotrix”)
Loading required package: plotrix
> color.id(“#ffffff”)
[1] “white” “gray100” “grey100”
> color.id(“#fefefe”)
[1] “white” “gray100” “grey100”