panel.stratify: Handle Each Level of a Stripplot Separately

Description Usage Arguments Details Value Author(s) References See Also

Description

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.

Usage

 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
)

Arguments

x

See panel.xyplot

y

See panel.xyplot

type

See panel.xyplot

groups

See panel.xyplot

pch

See panel.xyplot

col

See panel.xyplot

col.line

See panel.xyplot

col.symbol

See panel.xyplot

font

See panel.xyplot

fontfamily

See panel.xyplot

fontface

See panel.xyplot

lty

See panel.xyplot

cex

See panel.xyplot

fill

See panel.xyplot

lwd

See panel.xyplot

horizontal

See panel.xyplot

panel.levels

a function to handle each unique level of the data

...

See panel.xyplot

jitter.x

See panel.xyplot

jitter.y

See panel.xyplot

factor

See panel.xyplot

amount

See panel.xyplot

Details

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.

Value

used for side effects

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

See Also


anniejw6/metrumrg documentation built on May 10, 2019, 11:50 a.m.