panel.axis
is the function used by lattice to draw axes. It is
typically not used by users, except those wishing to create advanced
annotation. Keep in mind issues of clipping when trying to use it as
part of the panel function. current.panel.limits
can be used to
retrieve a panel's x and y limits.panel.axis(side = c("bottom", "left", "top", "right"),
at,
labels = TRUE,
draw.labels = TRUE,
check.overlap = FALSE,
outside = FALSE,
ticks = TRUE,
half = !outside,
which.half,
tck = as.numeric(ticks),
rot = if (is.logical(labels)) 0 else c(90, 0),
text.col, text.alpha, text.cex, text.font,
text.fontfamily, text.fontface,
line.col, line.lty, line.lwd, line.alpha)current.panel.limits(unit = "native")
at
. The labels can be a character
vector or a vector of expressions. Alternatively, this can be a
logical. If TRUE, the labels are derived from at
, otherwise,
labels are empty.at
values that are outside=TRUE
will only have a visible effect if
clipping is disabled for the viewport (panel)."lower"
and
"upper"
. Indicates which half is to be used for tick
locations if half=TRUE
. Defaults to whatever is suitable for
splom
unit
the values
should be incurrent.panel.limits
returns a list with components xlim
and ylim
, which are both numeric vectors of length 2, giving
the scales of the current panel (viewport). The values correspond to
the unit system specified by unit
, by default
"native"
.panel.axis
can draw axis tick marks inside or outside a
panel (more precisely, a grid viewport). It honours the (native) axis
scales. Used in panel.pairs
for splom
, as
well as for all the usual axis drawing by the print method for
"trellis"
objects. It can also be used to enhance plots
Lattice
, xyplot
,
trellis.focus
, unit