strip.default is the function that draws the strips by default
in conditioning Trellis plots. Users can write their own strip
functions, but most commonly this involves calling
strip.default with a slightly different arguments.
strip.custom provides a convenient way to obtain new strip
functions that differ from strip.default only in the default
values of certain arguments.strip.default(which.given,
which.panel,
var.name,
factor.levels,
shingle.intervals,
strip.names = c(FALSE, TRUE),
style = 1,
bg = trellis.par.get("strip.background")$col[which.given],
fg = trellis.par.get("strip.shingle")$col[which.given],
par.strip.text = trellis.par.get("add.text"))
strip.custom(...)strip.names (see below) is true.NULLlevels(shingle)). Otherwise, it should be NULL
x is a factor. Determines how the current
level of x is indicated on the strip. The best way to find out what effect the value of s
col, cex, fontstrip.default, overriding
whatever value it would have normally assumedstrip.default is useful for its side-effect, which is to draw
a strip appropriate for conditioning Trellis plots.
strip.default returns a function similar to
strip.defaultstyle argument --- non-default styles
are often more informative, especially when the names of the levels
of the factor x are small. Typical use is as
strip = function(...) strip.default(style=2,...).xyplot, Latticexyplot(Petal.Length ~ Petal.Width | Species, iris,
strip = strip.custom(style = 4))Run the code above in your browser using DataLab