Skip to contents

Create a BuPu palette.

Usage

BuPu(
  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

BuPu

Examples

BuPu(9)
#> [1] "#F7FCFD" "#E0ECF4" "#BFD3E6" "#9EBCDA" "#8C96C6" "#8C6BB1" "#88419D"
#> [8] "#810F7C" "#4D004B"
ggPalette(BuPu(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.