powered by
Remove a palette file by name, trying across types if necessary.
remove_palette(name, type = NULL, color_dir, log = TRUE)
Invisibly TRUE if removed successfully, FALSE otherwise.
Character. Palette name (without '.json' suffix).
Character. Optional. Preferred type ("sequential", "diverging", or "qualitative").
Character. Root folder where palettes are stored (required). Use tempdir() for examples/tests.
Logical. Whether to log palette removal to a temporary log file.
if (FALSE) { # Remove a palette (requires write permissions): remove_palette("seq_blues") # Remove with specific type: remove_palette("qual_vivid", type = "qualitative") }
Run the code above in your browser using DataLab