Retrieve a named palette by name and type, returning a vector of HEX colors. Automatically checks for type mismatch and provides smart suggestions.
Arguments
- name
Character. Name of the palette (e.g. "qual_vivid").
- type
Character. One of "sequential", "diverging", "qualitative". If NULL, type is auto-detected.
- n
Integer. Number of colors to return. If NULL, returns all colors. Default is NULL.
- palettes_path
Character. Path to a
palettes.rdafile. If NULL, uses the installed package dataset.
