File: hsv_palette.Rd

package info (click to toggle)
r-cran-e1071 1.7-3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,184 kB
  • sloc: cpp: 2,770; ansic: 1,022; sh: 4; makefile: 2
file content (28 lines) | stat: -rwxr-xr-x 797 bytes parent folder | download | duplicates (6)
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
\name{hsv_palette}
\alias{hsv_palette}
\title{Sequential color palette based on HSV colors}
\description{
Computes a sequential color palette based on HSV colors by varying the
saturation, given hue and value.
}
\usage{
hsv_palette(h = 2/3, from = 0.7, to = 0.2, v = 1)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{h}{hue}
  \item{from}{lower bound for saturation}
  \item{to}{upper bound for saturation}
  \item{v}{value}
}
\value{
  A function with one argument: the size of the palette, i.e., the number
  of colors.
}
\author{David Meyer \email{David.Meyer@R-project.org}}
\seealso{\code{\link[grDevices]{hsv}}}
\examples{
pie(rep(1, 10), col = hsv_palette()(10))
pie(rep(1, 10), col = hsv_palette(h = 0)(10))
}
\keyword{hplot}% __ONLY ONE__ keyword per line