Next: typeIIIss() Up: Design Macros Help File Previous: rscanon()   Contents

sidebyside()

Usage:
sidebyside([termlaby:y,labels:c,rescale:tf,showconst:tf,boxcut:int])



Keywords: plots
sidebyside() produces a side-by-side plot of the effects and residuals
of the current model; there must be an active model.  A side-by-side
plot plots the effects for each term against the term number, showing
the relative sizes of the effects.  When there are many effects or
residuals, a boxplot is made instead of showing individual effects.
There are no required arguments, but the following arguments alter
the plot; in addition, any graphics arguments are passed through.

Optional arguments are
  termlaby:real      Specify y-value for term labels. This can be a
                     single value or a vector of length equal to number
                     of terms.
  labels:charvector  Specify your own term labels.
  rescale:logic      Should effects be divided by their standard errors.
                     Default is F.  This uses the standard errors as
                     reported by secoefs() and may not be correct for
                     all mixed models (secoefs() depends on terms labeled
                     ERRORX).  Residuals are divided by root MSE.
  showconst:logic    Should the coefficient of the CONSTANT be shown?
                     Default is F.
  boxcut:integer     Cutoff for using a boxplot for a term instead of
                     plotting individual effects.  Default is 20.

Example:
  Cmd> y <- vector(9,13,12,43,48,57,60,65,70,77,70,91,\
       15,13,20,66,58,73,75,78,90,97,108,99)
  Cmd> acid<-factor(rep(run(2),rep(12,2)))
  Cmd> style<-factor(rep(rep(run(4),rep(3,4)),2))
  Cmd> anova("y=acid*style",silent:T)
  Cmd> sidebyside() #default plot
  Cmd> # specify term locations and labels
  Cmd> sidebyside(termlaby:vector(-50,-40,-30,-20),\
       labels:vector("a","b","c","d"),boxcut:30)
  Cmd> # show the constant and rescale
  Cmd> sidebyside(dumb:T,showconst:T,rescale:T)


Gary Oehlert 2003-01-15