Skip to contents

Create a BuGn palette.

Usage

BuGn(
  paletteLength.num = NULL,
  space.chr = "rgb",
  interpolate.chr = "linear",
  bias.num = 1
)

Arguments

paletteLength.num

<numeric>: color number.

space.chr

<numeric>: a character string; interpolation in RGB or CIE Lab color spaces. See ?grDevices::colorRamp for more details. (Default "rgb")

interpolate.chr

<numeric>: use spline or linear interpolation. See ?grDevices::colorRamp for more details. (Default "linear")

bias.num

<numeric>: a positive number. Higher values give more widely spaced colors at the high end. See ?grDevices::colorRamp for more details. (Default 1)

Value

A vector of color.

Details

BuGn

Examples

BuGn(9)
#> [1] "#F7FCFD" "#E5F5F9" "#CCECE6" "#99D8C9" "#66C2A4" "#41AE76" "#238B45"
#> [8] "#006D2C" "#00441B"
ggPalette(BuGn(255))
#> Warning: Use of `data.dtf$x` is discouraged. Use `x` instead.
#> Warning: Use of `data.dtf$y` is discouraged. Use `y` instead.
#> Warning: Use of `data.dtf$x` is discouraged. Use `x` instead.
#> Warning: Use of `data.dtf$x` is discouraged. Use `x` instead.
#> Warning: Use of `data.dtf$y` is discouraged. Use `y` instead.