Skip to contents

Returns a character vector of n hex colors for "highlight one series, mute the rest" charts. The first element is the brand hex for color; the remaining n - 1 elements are PHA's neutral gray (#e2e4e3). Pass the result to ggplot2::scale_fill_manual() or ggplot2::scale_colour_manual().

Usage

pha_focus_pal(color, n = 5)

Arguments

color

A valid PHA color name (e.g. "Green", "Orange").

n

Total number of series (focus + muted). Must be a positive integer.

Value

An unnamed character vector of length n.

Examples

pha_focus_pal("Green", n = 4)
#> [1] "#5bab8e" "#e2e4e3" "#e2e4e3" "#e2e4e3"