Create a PuOr palette.
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)
Examples
PuOr(9)
#> [1] "#7F3B08" "#BE6209" "#EE9C3B" "#FDD5A1" "#F7F7F7" "#CECEE4" "#998FBF"
#> [8] "#5F3A91" "#2D004B"
ggPalette(PuOr(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.