Skip to contents

Create a YlOrRd palette.

Usage

YlOrRd(
  paletteLength = NULL,
  space = "rgb",
  interpolationMethod = "linear",
  bias = 1
)

Arguments

paletteLength

: Color number.

space

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

interpolationMethod

: Use spline or linear interpolation. See ?grDevices::colorRamp for more details. (Default "linear")

bias

: 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

YlOrRd

Examples

YlOrRd(9)
#> [1] "#FFFFCC" "#FFEDA0" "#FED976" "#FEB24C" "#FD8D3C" "#FC4E2A" "#E31A1C"
#> [8] "#BD0026" "#800026"