swh:1:snp:33a53053e50f7abe7d281cc0c803be827debf4a3
Tip revision: 83eabd78cec8fef7ed4c3b7bd0b911996c9957bb authored by Edzer J. Pebesma on 29 March 2005, 00:00:00 UTC
version 0.9-22
version 0.9-22
Tip revision: 83eabd7
bpy.colors.Rd
\name{bpy.colors}
\alias{bpy.colors}
\title{ blue-pink-yellow color scheme that prints well as grey tone }
\description{ Create a vector of `n' ``contiguous'' colors. }
\usage{ bpy.colors(n = 100, cutoff.tails = 0.1) }
\arguments{
\item{n}{number of colors (>= 1) to be in the palette}
\item{cutoff.tails}{tail fraction to be cut off. This palette runs
from black to white if \code{cutoff.tails} is 0; by cutting off
the tails, it runs from blue to yellow, which looks nicer. }
}
\value{ A character vector, `cv', of color names. This can be used
either to create a user-defined color palette for subsequent graphics
by `palette(cv)', a `col=' specification in graphics functions or in
`par'. }
\author{ unknown }
\references{
\url{http://www.ihe.uni-karlsruhe.de/mitarbeiter/vonhagen/palette.en.html};
gnuplot has this color map
}
\note{ This color map prints well on black-and-white printers. }
\seealso{\link{rainbow}, \link{cm.colors}}
\examples{
bpy.colors(10)
p <- expand.grid(x=1:30,y=1:30)
p$z <- p$x + p$y
image(p, col = bpy.colors(100))
# require(lattice)
# trellis.par.set("regions", list(col=bpy.colors())) # make default
}
\keyword{color}