Skip to contents

Uses colorRampPalette to interpolate between the four tones of a family (A900 → A300), producing an arbitrary number of evenly spaced colors.

Usage

albers_ramp(family = "red", n = 9, reverse = FALSE)

Arguments

family

Palette family name.

n

Number of colors to return.

reverse

If TRUE, return colors from light to dark.

Value

Character vector of n hex colors.

Examples

albers_ramp("lapis", n = 5)
#> [1] "#1B2A74" "#1E3592" "#2644B4" "#3355CE" "#4968D6"