Skip to contents

Uses the function grDevices::hcl.colors() to generate a continuous color palette.

Usage

utils_color_continuous_default(n = 10, palette = "Zissou 1")

Arguments

n

(required, integer) number of colors to generate. Default = NULL

palette

(required, character string) Argument palette of grDevices::hcl.colors(). Default: "Zissou 1"

Value

color vector

Examples


utils_color_continuous_default(n = 20)
#>  [1] "#3B99B1" "#35A2AC" "#3FAAA6" "#52B19F" "#6AB699" "#81BB95" "#98BF95"
#>  [8] "#AAC392" "#BEC78D" "#D4CA84" "#EAC527" "#EAB821" "#E9AC1C" "#E89F16"
#> [15] "#E7920D" "#E78400" "#E87500" "#EB6200" "#EF4900" "#F5191C"