margin.plot: Margin Plots of Response for Pairs of Factors

Usage Arguments Value See Also Examples

Usage

1
2
3
4
margin.plot(object, ...)
## Default S3 method:
margin.plot(object, response, group, orient = "default", average = "full",
    xlab = xlabs, ylab = ylabs, ...)

Arguments

object

factor whose margins are to be plotted on the horizontal axis. Factor levels are plotted below the marginal means or effects.

response

numeric vector.

group

factor whose levels will be separate traces.

...

optional specification of other parameters to be passed to plotting routines.

orient

"default" = default (as in interaction.plot), "switch" = switch plot orientation of object and group, "both" = plot both ways, "full" = use response, "reduced" = use predicted values from reduced (additive) model.

xlab,ylab

x and y axis labels

average

model to use for marginal averages

Value

a plot will be created showing the requested function of responses for each level of the object at each level of the group. By default, lines for each value of the group are drawn in different styles so that they may be more easily distinguished.

See Also

tukey.plot, margin.plot.lm, Tukey.

Examples

1
2
3
4
5
6
data( Tukey )
attach( Tukey )
margin.plot( lat, y, geno, orient = "switch", error = "red",
   xlab = "(b) geno marginals by lat", ylab = "",
   xpos = 115, ypos = 100, mod = "")
detach()

byandell/pda documentation built on May 13, 2019, 9:27 a.m.