Learn R Programming

shades (version 1.4.0)

complement: Complementary colours

Description

This function returns the complement of its argument, the "opposite" colours in the specified space.

Usage

complement(shades, space = NULL)

Arguments

shades

One or more colours, in any suitable form (see shade), or a palette function or scale.

space

The space in which to take the complement.

Value

New colours of class "shade", or a new palette function.

Examples

Run this code
# NOT RUN {
complement("cyan")
complement("cyan", space="HSV")
complement("cyan", space="Lab")
# }

Run the code above in your browser using DataLab