margin.plot {pda} | R Documentation |
margin.plot(object, ...) ## Default S3 method: margin.plot(object, response, group, orient = "default", average = "full", xlab = xlabs, ylab = ylabs, ...)
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 |
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.
tukey.plot
, margin.plot.lm
,
Tukey
.
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()