| map_to_color | R Documentation |
Will abort if color_assignment does not contain valid colors in colors_hex_map() or hex_colors_map().
map_to_color(x, color_assignment, other)
x |
Character vector. |
color_assignment |
Vector of new values named with |
other |
The value to map all other values not in |
This function converts x to factor, recodes the factor, and then
returns the recoded factor vector as character using map_to_value().
DETAILS
A character vector of the same length as x.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.