Learn R Programming

lattice (version 0.7-15)

lattice-Internal: Miscellaneous Functions used within Lattice

Description

These functions are used by various Lattice routines.

Usage

Rows(x, which)
extend.limits(lim, length = 1, prop = 0.07) 
lpretty(lim)
calculateAxisComponents(x, at = FALSE, labels = FALSE, logpaste = "",
              abbreviate = NULL, minlength = 4,
              format, ...) 
.lattice.print.more
cupdate(index, maxim)
do.breaks(endpoints, nint)
ldrop.levels(x, subset)
compute.layout(...)
make.list.from.intervals(x)
construct.scales(...)
construct.3d.scales(...)
limits.and.aspect(...)
trellis.skeleton(...)
prepanel.default.bwplot(...)
prepanel.default.levelplot(x, y, wx, wy, subscripts, ...)
prepanel.default.cloud(distance, xlim, ylim,
        zlim, zoom = 1, rot.mat = rot.mat, 
        aspect = aspect,...)
prepanel.default.densityplot(...)
prepanel.default.histogram(...)
prepanel.default.parallel(...)
prepanel.default.qq(...)
prepanel.default.qqmath(...)
prepanel.default.splom(...)
prepanel.default.tmd(...)
prepanel.default.xyplot(x, y, type, ...)
is.characterOrExpression(x)
rearrangeUnit(x, pos, u)
latticeAsFormula(x)
generateNewName(names.current, new.prefix)

Arguments

length
desired length of the resulting interval, with center given by the center of lim. Used for relation="sliced".
prop
Proportion by which to extend limits.
x,y
numeric, factor or shingle. x in is.characterOrExpression can be an arbitrary S object, in rearrangeUnit, a grid 'unit' vector.
subset
indices to keep.
which
logical ?
lim
length 2 numeric
index
current values of levels
maxim
max values of levels
endpoints
see histogram
nint
see histogram
zoom, rot.mat,aspect
see panel.cloud
distance, xlim, ylim, zlim
see panel.cloud
wx, wy, subscripts
see panel.levelplot
type
type argument as in panel.xyplot
pos
integer
u
grid unit object of length 1
at, labels, logpaste, abbreviate, minlength, format
arguments used in calculateAxisComponents
names.current, new.prefix
names to disambiguate and new prefix
...
other arguments

synopsis

generateNewName(names.current, new.prefix) lpretty(x, ...) construct.3d.scales(draw = TRUE, axs = "r", tck = 1, lty = 1, lwd = 1, distance = c(1, 1, 1), tick.number = 5, cex = 1, rot = FALSE, at = FALSE, labels = FALSE, col = FALSE, log = FALSE, font = FALSE, arrows = TRUE, relation = "same", x = NULL, y = NULL, z = NULL, ...) construct.scales(draw = TRUE, axs = "r", tck = 1, tick.number = 5, cex = 1, rot = FALSE, at = FALSE, labels = FALSE, col = FALSE, log = FALSE, font = FALSE, alternating = TRUE, relation = "same", abbreviate, minlength, limits, x = NULL, y = NULL, ...) compute.layout(layout, cond.max.level, skip = FALSE) limits.and.aspect(prepanel.default.function, prepanel = NULL, have.xlim = FALSE, xlim = NULL, have.ylim = FALSE, ylim = NULL, x.relation, y.relation, panel.args.common = list(), panel.args = list(), aspect, nplots, x.axs, y.axs, ...) trellis.skeleton(as.table = FALSE, aspect = "fill", between = list(x = 0, y = 0), key = NULL, page = NULL, main = NULL, sub = NULL, par.strip.text = list(), skip = FALSE, strip = strip.default, xlab = NULL, ylab = NULL, panel, ...)

Details

Some of these functions are indigenous, some are counterparts of functions in the S-Plus Trellis Displays library.

lpretty is used instead of pretty (which gives very non-pretty results in some cases, particularly densityplot).

ldrop.levels returns an object of the same class as x, with the redundant factor/shingle levels dropped, if any. Used to avoid empty panels when using the subset argument.

.lattice.print.more is a global logical to handle the more argument in print.trellis.

rearrangeUnit is a hack that emulates x[pos] <- u

calculateAxisComponents is modified from axis.POSIXct. This aims to be a general function which given a general 'range' x and optional at, generates the locations of tick marks and corresponding labels. Ultimately will be a replacement for lpretty.

See Also

Lattice