powered by
This function returns the complement of its argument, the "opposite" colours in the specified space.
complement(shades, space = NULL)
One or more colours, in any suitable form (see shade), or a palette function or scale.
shade
The space in which to take the complement.
New colours of class "shade", or a new palette function.
"shade"
# NOT RUN { complement("cyan") complement("cyan", space="HSV") complement("cyan", space="Lab") # }
Run the code above in your browser using DataLab