Create a turbo palette.
Usage
turbo(
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)
Examples
turbo(9)
#> [1] "#30123B" "#466AE2" "#28BBEB" "#30F199" "#A2FC3C" "#ECD03A" "#FB8021"
#> [8] "#D13005" "#7A0403"
ggPalette(turbo(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.