Usage
ladder(formula.in, data=sys.parent(),
main.in="Ladders of Powers",
panel.in=panel.cartesian,
xlab=deparse(formula.in[[3]]),
ylab=deparse(formula.in[[2]]),
scales=list(alternating=if.R(s=TRUE, r=FALSE),
labels=FALSE, ticks=FALSE, cex=.6),
par.strip.text=list(cex=.6),
cex=.5, pch=16, between=list(x=.3, y=.3),
dsx=xlab,
dsy=ylab,
ladder.function=ladder.f,
strip.number=if.R(r=2, s=1),
strip.names,
strip.style=1,
strip,
oma=c(0,0,0,0), ## S-Plus
axis3.line=.61,
layout=c(length(tmp$x.power), length(tmp$y.power)),
axis.key.padding = 10, ## R right axis
key.axis.padding = 10, ## R top axis
useOuter=TRUE, ## R useOuterStrips(combineLimits(result))
...)ladder3(x, y,
dsx=deparse(substitute(x)),
dsy=deparse(substitute(y)),
ladder.function=ladder.f)
ladder.f(x, name.prefix="")
ladder.fstar(x, name.prefix="")
strip.ladder(which.given,
which.panel,
var.name,
factor.levels,
shingle.intervals,
par.strip.text=trellis.par.get("add.text"),
strip.names=c(TRUE,TRUE),
style=1,
...)
Arguments
formula.in
A formula with exactly one variable on each side.
main.in
main
title for xyplot
panel.in
panel.cartesian
has many arguments in addition
to the arguments in panel.xyplot
. Any replacement
panel function must have those argument names, even if it
doesn't do anything with them.
xlab, ylab
Trellis arguments, default to right- and left-sides
of the formula.in
.
strip
Strip function. Our default is strip.ladder
(see below). The other viable argument value is FALSE
.
cex, pch, between, scales, layout
arguments for xyplot
.
dsx, dsy
Names to be used as level names in
ladder.function
for the generated factor distinguishing the
powers. They default to xlab, ylab
. For long variable names,
an abbreviated name here will decrease clutter in the ladde
ladder.function
function to use to create data.frame of powers
of input variable.
name.prefix
Base name used for column names of powers. The
default is empty (""
). An alternative must include
the power symbol "^"
, for example, "abc^"
.
strip.number
Number of strip labels in each panel of the display.
0: no strip labels; 1: one strip label of the form y^p ~ x^q
;
2: two strip labels of the form ylab: y^p
and xlab: x^q
,
where p
and q
useOuter
logical, defaults to TRUE
. In R, this implies
that strip.number
is forced to 2
and that the
resulting "trellis"
object will be sent through
useOuterStrips(combineLimits(result))
.
Thi
strip.style
style
argument to strip
.
oma
argument to par
in S-Plus.
...
other arguments to xyplot
.
axis3.line
extra space to make the top axis align with the top
of the top row of panels. Trial and error to choose a good value.
axis.key.padding
Extra space on right of set of panels in R.
key.axis.padding
Extra space on top of set of panels in R.
which.given, which.panel, var.name, factor.levels,
shingle.intervals, par.strip.text
strip.names, style
We always print the strip.names
in style=1
. Multicolored styles are too busy.