Create an Hue palette.
Usage
Hue(
paletteLength.num = 9,
rotation.num = NULL,
hueRange.num = c(0, 360),
saturation.num = 0.65,
lightness.num = 0.65,
alpha.num = 1,
alpha.bln = FALSE
)
Arguments
- paletteLength.num
<numeric>: color number.
- rotation.num
<numeric>: if positive, rotates clockwise in the color space, reversing if the number is negative. If is NULL compute rotation according to hueRange.num parameter. (Default NULL)
- hueRange.num
<numeric>: Degree range in color space between 0 and 360. (Default c(0,360))
- saturation.num
<numeric>: Saturation value between 0 and 1. (Default 0.65)
- lightness.num
<numeric>: Lightness value between 0 and 1. (Default 0.65)
- alpha.num
<numeric>: Opacity value between 0 and 1. (Default 1)
- alpha.bln
<logical>: whether the alpha layer should be returned. (Default FALSE)
Examples
Hue(paletteLength.num=9)
#> [1] "#e06c6c" "#e0b96c" "#b9e06c" "#6ce06c" "#6ce0b9" "#6cbae0" "#6c6ce0"
#> [8] "#b86ce0" "#e06cba"
ggPalette(Hue(paletteLength.num=9))
#> 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.