Learn R Programming

VizOR (version 0.8-5)

key.colored: Extract the color key from a colored factor

Description

Return a colored factor's key, mapping its levels to their colors. Returns a named vector, mapping the factor levels (names) to their associated colors (values). Useful for constructing plot keys.

Usage

"key"(x, ...)

Arguments

x
A colored factor
...
Additional arguments (unused)

Value

A color key, in the form of a named vector

See Also

colored