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.
A colored factor
Additional arguments (unused)
A color key, in the form of a named vector
David C. Norris
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.