Rev 5489 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{F_1_panel.levelplot}\alias{panel.levelplot}\alias{panel.contourplot}\title{ Default Panel Function for levelplot }\description{This is the default panel function for \code{levelplot}.}\usage{panel.levelplot(x, y, z,subscripts,at = pretty(z),shrink,labels,label.style = c("mixed", "flat", "align"),contour = FALSE,region = TRUE,col = add.line$col,lty = add.line$lty,lwd = add.line$lwd,border = "transparent",\dots,col.regions = regions$col,alpha.regions = regions$alpha)panel.contourplot(\dots)}\arguments{\item{x, y, z}{ Variables defining the plot. }\item{subscripts}{Integer vector indicating what subset of \code{x}, \code{y} and\code{z} to draw.}\item{at}{Numeric vector giving breakpoints along the range of\code{z}. See \code{\link{levelplot}} for details.}\item{shrink}{Either a numeric vector of length 2 (meant to work as both x and ycomponents), or a list with components x and y which are numericvectors of length 2. This allows the rectangles to be scaledproportional to the z-value. The specification can be madeseparately for widths (x) and heights (y). The elements of thelength 2 numeric vector gives the minimum and maximum proportion ofshrinkage (corresponding to min and max of z).}\item{labels}{Either a logical scalar indicating whether the labels are to bedrawn, or a character or expression vector giving the labelsassociated with the \code{at} values. Alternatively, \code{labels}can be a list with the following components:\describe{\item{\code{labels}:}{ a character or expression vector giving thelabels. This can be omitted, in which case the defaults will beused. }\item{\code{col, cex, alpha}:}{ graphical parameters for labeltexts }\item{\code{fontfamily, fontface, font}:}{ font used for thelabels }}}\item{label.style}{Controls how label positions and rotation are determined. A valueof \code{"flat"} causes the label to be positioned where the contouris flattest, and the label is not rotated. A value of\code{"align"} causes the label to be drawn as far from theboundaries as possible, and the label is rotated to align with thecontour at that point. The default is to mix these approaches,preferring the flattest location unless it is too close to theboundaries.}\item{contour}{A logical flag, specifying whether contour lines should be drawn.}\item{region}{A logical flag, specifying whether inter-contour regions should befilled with appropriately colored rectangles.}\item{col, lty, lwd}{ graphical parameters for contour lines}\item{border}{ border color for rectangles used when \code{region=TRUE}. }% \item{cex, col.text, font, fontfamily, fontface}{ graphical parameters for contour labels}\item{\dots}{ Extra parameters. }\item{col.regions}{A vector of colors, or a function to produce a vecor of colors, tobe used if \code{region=TRUE}. Each interval defined by \code{at}is assigned a color, so the number of colors actually used is oneless than the length of \code{at}. See \code{\link{level.colors}}for details on how the color assignment is done.}\item{alpha.regions}{numeric scalar controlling transparency of facets}}\details{The same panel function is used for both \code{levelplot} and\code{contourplot} (which differ only in default values of somearguments). \code{panel.contourplot} is a simple wrapper to\code{panel.levelplot}.When \code{contour=TRUE}, the \code{contourLines} function is used tocalculate the contour lines.}\author{ Deepayan Sarkar \email{Deepayan.Sarkar@R-project.org}}\seealso{\code{\link{levelplot}},\code{\link{level.colors}},\code{\link{contourLines}}}\keyword{dplot}