pal_brand
pal_brand(n=None)Brand colour palette.
Returns the organisation’s accent colours set by use_brand() (or the brand_colors option), ready for manual scales or direct use. Without a brand, it falls back to pal_sequential_blue so it always returns something usable. Only the categorical brand accents live here: the semantic palettes (pal_rating, pal_nps) keep their red-amber-green vocabulary regardless of brand, because recolouring “bad to good” with corporate accents would destroy the meaning the colours carry.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| n | int | Number of colours wanted. None (default) returns the full accent list; when n exceeds the available colours the palette is interpolated, as R’s colorRampPalette() does. |
None |
Returns
| Name | Type | Description |
|---|---|---|
| list of str | Hex colours. |
See Also
use_brand, scale_fill_brand
Examples
>>> pal_brand()
>>> pal_brand(2)