SCM Repository
View of /pkg/man/useOuterStrips.Rd
Parent Directory
|
Revision Log
Revision 188 -
(download)
(as text)
(annotate)
Wed Dec 30 10:38:54 2015 UTC (6 years, 5 months ago) by deepayan
File size: 2065 byte(s)
Wed Dec 30 10:38:54 2015 UTC (6 years, 5 months ago) by deepayan
File size: 2065 byte(s)
slightly smarter useOuterStrips() which doesn't draw the inner strips, as opposed to the previous version which only reduced the heights to 0 and depended on clipping
\name{useOuterStrips} \alias{useOuterStrips} \title{ Put Strips on the Boundary of a Lattice Display } \description{ Try to update a \code{"trellis"} object so that strips are only shown on the top and left boundaries when printed, instead of in every panel as is usual. This is only meaningful when there are exactly two conditioning variables. } \usage{ useOuterStrips(x, strip = strip.default, strip.left = strip.custom(horizontal = FALSE), strip.lines = 1, strip.left.lines = strip.lines) } \arguments{ \item{x}{ An object of class \code{"trellis"}. } \item{strip, strip.left}{ A function, character string or logical that would be appropriate \code{strip} and \code{strip.left} arguments respectively in a high level lattice function call (see \code{\link{xyplot}}) } \item{strip.lines, strip.left.lines}{ height of strips in number of lines; helpful for multi-line text or mathematical annotation in strips. } } \details{ \code{useOuterStrips} modifies a \code{"trellis"} object with \code{length(dim(x)) == 2} so that when plotted, strips are only shown on the top and left boundaries of the panel layout, rather than on top of every panel, as is the usual behaviour. If the original \code{"trellis"} object \code{x} includes non-default \code{strip} and \code{strip.left} arguments, they will be ignored. To provide customized strip behaviour, specify the custom strip functions directly as arguments to \code{useOuterStrips}. } \value{ An object of class \code{"trellis"}; essentially the same as \code{x}, but with certain properties modified. } \author{ Deepayan Sarkar } \seealso{ \code{\link{Lattice}}, \code{\link{xyplot}} } \examples{ library(lattice) mtcars$HP <- equal.count(mtcars$hp) useOuterStrips(xyplot(mpg ~ disp | HP + factor(cyl), mtcars)) useOuterStrips(xyplot(mpg ~ disp | factor(cyl) + HP, mtcars), strip.left = FALSE, strip = strip.custom(style = 4)) } \keyword{dplot}
root@r-forge.r-project.org | ViewVC Help |
Powered by ViewVC 1.0.0 |