View source: R/remove_palette.R
| remove_palette | R Documentation |
Remove a palette file by name, trying across types if necessary.
remove_palette(name, type = NULL, color_dir, log = TRUE)
name |
Character. Palette name (without '.json' suffix). |
type |
Character. Optional. Preferred type ("sequential", "diverging", or "qualitative"). |
color_dir |
Character. Root folder where palettes are stored (required). Use tempdir() for examples/tests. |
log |
Logical. Whether to log palette removal to a temporary log file. |
Invisibly TRUE if removed successfully, FALSE otherwise.
## Not run:
# Remove a palette (requires write permissions):
remove_palette("seq_blues")
# Remove with specific type:
remove_palette("qual_vivid", type = "qualitative")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.