powered by
Return a colour name from a colour specification.
# S3 method for colourMatch colourNames(x, ...) # S3 method for default colourNames(x, colourList=getOption("roloc.colourList"), colourMetric=getOption("roloc.colourMetric"), ...) colourName(...)
colourNames returns a list of colour names (possibly more than one per colour specification).
colourNames
colourName returns a vector of colour names (only the first match per colour specification).
colourName
A "colourMatch" object or an R colour specification
"colourMatch"
A list of colours
A colour metric function. See colourMatch for details.
colourMatch
For colourNames, arguments passed to the colour metric function. For colourName, arguments passed to colourNames
Paul Murrell
# Some colours() are identical to each other newColours <- colourName(rgb(t(col2rgb(colours())), maxColorValue=255)) repeats <- newColours != colours() cbind(colours()[repeats], newColours[repeats])
Run the code above in your browser using DataLab