Skip to contents

A function to create a sequential color scale using Blues 3, that is reversed and slightly darkened.

Usage

seqFillColors(n_colors)

Arguments

n_colors

Required, the number of color hex codes to return.

Value

a character vector hex color codes the length of n_colors from the Blues 3 palette.

Examples

# Returns the 5 colors in the sequential palette:
seqFillColors(n_colors = 5)
#> [1] "#DDDDDD" "#AEC3DF" "#7798BF" "#0466A2" "#023163"

# Returns the 7 colors colors in the sequential palette::
seqFillColors(n_colors = 7)
#> [1] "#DDDDDD" "#BDCFE6" "#9FB5D5" "#7798BF" "#4677A7" "#00548B" "#023163"