c4a_modify {cols4all} | R Documentation |
Edit cols4all palettes (in development)
Description
Edit cols4all palettes. c4a_duplicate duplicates an existing cols4all palette, and c4a_modify is used to change the colors. Use c4a_data to craete palettes from scratch.
Usage
c4a_modify(palette, x = NULL, xNA = NULL)
c4a_duplicate(palette, name = NA)
Arguments
palette |
name of the palette |
x |
vector of the new colors. It should either the same length, or a named vector, where the names correspond to the index numbers. E.g. |
xNA |
the new color for missing values. |
name |
name of new palette |
See Also
Examples
c4a_duplicate("brewer.set2", "set2_mod")
c4a_modify("set2_mod", c("4" = "#EA8AB8"))
[Package cols4all version 0.7-1 Index]