Description Usage Arguments Details Value Author(s) References See Also
Just as panel.superpose
handles each group of data separately, panel.stratify
handles each ‘level’ of data separately. Typically, levels are the unique
values of y
(horizontal==TRUE
) that result from a call to stripplot
or bwplot
.
The default panel functions treat all levels simultaneously. Plotting some
transformation of the data (e.g. density polygons for each level) is much easier if
the levels are presented individually.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | panel.stratify(
x,
y,
type = 'p',
groups = NULL,
pch = if (is.null(groups))
plot.symbol$pch else superpose.symbol$pch,
col,
col.line = if (is.null(groups))
plot.line$col else superpose.line$col,
col.symbol = if (is.null(groups)) plot.symbol$col else superpose.symbol$col,
font = if (is.null(groups))
plot.symbol$font else superpose.symbol$font,
fontfamily = if (is.null(groups)) plot.symbol$fontfamily
else superpose.symbol$fontfamily,
fontface = if (is.null(groups)) plot.symbol$fontface
else superpose.symbol$fontface,
lty = if (is.null(groups))
plot.line$lty else superpose.line$lty,
cex = if (is.null(groups)) plot.symbol$cex else superpose.symbol$cex,
fill = if (is.null(groups)) plot.symbol$fill else superpose.symbol$fill,
lwd = if (is.null(groups)) plot.line$lwd else superpose.line$lwd,
horizontal = FALSE,
panel.levels = 'panel.xyplot',
...,
jitter.x = FALSE,
jitter.y = FALSE,
factor = 0.5,
amount = NULL
)
|
x |
See |
y |
See |
type |
See |
groups |
See |
pch |
See |
col |
See |
col.line |
See |
col.symbol |
See |
font |
See |
fontfamily |
See |
fontface |
See |
lty |
See |
cex |
See |
fill |
See |
lwd |
See |
horizontal |
See |
panel.levels |
a function to handle each unique level of the data |
... |
See |
jitter.x |
See |
jitter.y |
See |
factor |
See |
amount |
See |
panel.stratify
is defined almost identically to panel.xyplot
. panel.levels
is analogous to panel.groups
. panel.levels
may want to handle special cases
of col
, which may be missing if groups
is NULL
and may be NA
if groups
is
not NULL
(set to NA
by panel.superpose
).
x
and y
are split into subsets by whichever of them represents levels (y
if
horizontal
is TRUE
, x
otherwise). Corresponding subsets of x
and y
are
forwarded one at a time, along with the other arguments, to panel.levels
.
Additionally, the current value of level
as well as the complete vector of
levels
are available to panel.levels
.
used for side effects
Tim Bergsma
http://metrumrg.googlecode.com
panel.covplot
panel.densitystrip
panel.hist
panel.xyplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.