File: draw.colorkey.Rd

package info (click to toggle)
lattice 0.20-41-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,988 kB
  • sloc: ansic: 357; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 877 bytes parent folder | download
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
\name{D_draw.colorkey}
\alias{draw.colorkey}
\title{Produce a colorkey typically for levelplot}
\description{
  Creates (and optionally draws) a grid frame grob representing a color
  key that can be placed in other grid-based plots. Primarily used by
  \code{levelplot} when a color key is requested.
}
\usage{
draw.colorkey(key, draw = FALSE, vp = NULL)
}
\arguments{
  \item{key}{
    A list determining the key. See documentation for \code{levelplot},
    in particular the section describing the \code{colorkey} argument,
    for details.
  }
  \item{draw}{ A scalar logical, indicating whether the grob is to be drawn. }
  \item{vp}{ The viewport in which to draw the grob, if applicable. }
}
\value{
  A grid frame object (that inherits from \code{"grob"})
}
\author{Deepayan Sarkar \email{Deepayan.Sarkar@R-project.org}}
\seealso{\code{\link{xyplot}}}
\keyword{dplot}