Learn R Programming

shades (version 1.4.0)

coords: Retrieve the coordinates of a colour vector

Description

This function retrieves the coordinates of a colour vector's elements, within whatever space it is currently defined.

Usage

coords(x, ...)

Arguments

x

An R object.

...

Additional arguments to methods.

Value

A matrix giving colour coordinates in the relevant space, one colour per row. Columns are typically named.

Examples

Run this code
# NOT RUN {
coords("red")
# }

Run the code above in your browser using DataLab