forked from r-lib/scales
/
hue_pal.Rd
39 lines (32 loc) · 873 Bytes
/
hue_pal.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
\name{hue_pal}
\alias{hue_pal}
\title{Hue palette (discrete).}
\usage{
hue_pal(h = c(0, 360) + 15, c = 100, l = 65, h.start = 0,
direction = 1)
}
\arguments{
\item{h}{range of hues to use, in [0, 360]}
\item{l}{luminance (lightness), in [0, 100]}
\item{c}{chroma (intensity of colour), maximum value
varies depending on}
\item{h.start}{hue to start at}
\item{direction}{direction to travel around the colour
wheel, 1 = clockwise, -1 = counter-clockwise}
}
\description{
Hue palette (discrete).
}
\examples{
show_col(hue_pal()(4))
show_col(hue_pal()(9))
show_col(hue_pal(l = 90)(9))
show_col(hue_pal(l = 30)(9))
show_col(hue_pal()(9))
show_col(hue_pal(direction = -1)(9))
show_col(hue_pal()(9))
show_col(hue_pal(h = c(0, 90))(9))
show_col(hue_pal(h = c(90, 180))(9))
show_col(hue_pal(h = c(180, 270))(9))
show_col(hue_pal(h = c(270, 360))(9))
}