Uses the same resolve_colors() priority chain as the highcharter
engine so both backends always produce identical colour assignments:
Arguments
- p
A ggplot object.
- colors
Character vector, palette name string, or NULL.
- n_groups
Integer. Number of groups in the data. Drives which palette rule fires. Passed from
ggplot_engine().- group_levels
Character vector or NULL. Group level names in data order. Used to name the palette so ggplot2 matches colours to groups by name rather than alphabetical sort.
