HH (version 3.1-25)

mmcplot: MMC (Mean-mean Multiple Comparisons) plots in lattice.

Description

MMC (Mean--mean Multiple Comparisons) plots in lattice

Usage

mmcplot(mmc, ...)
## S3 method for class 'mmc':
mmcplot(mmc, col=col, lwd=lwd, lty=lty, ...,
                  style=c("isomeans", "confint", "both"),
                  type=c("mca", "lmat", "linfct", "none"))
## S3 method for class 'glht':
mmcplot(mmc, col=c("black","red"), lwd=c(1,1), lty=c(2,1),
                  focus=mmc$focus, ...)
## S3 method for class 'mmc.multicomp':
mmcplot(mmc, col=c("black","red"), lwd=c(1,1), lty=c(2,1), ...)
## S3 method for class 'multicomp':
mmcplot(mmc, col=col, lwd=lwd, lty=lty, ...)
## S3 method for class 'default':
mmcplot(mmc, ...)

Arguments

mmc
mmc object or other object as indicated by method.
col,lwd, lty
Standard xyplot arguments applied to the line segments representing the contrasts.
focus
Name of the factor for which the glht object was constructed.
...
Other arguments to be passed on to the functions called by the methods.
style
Style of graph: The default isomeans is the standard MMC plot with the isomeans grid. confint is a confidence interval plot, similar to the plot produced by multcomp:::plot.glht. both prints both the
type
mca for the default paired-comparisons plot. lmat or linfct for a user-specified set of contrasts. none for confidence intervals on the set of group means (that is, no comparisons).

Value

  • A trellis object containing the graphs.

References

See mmc for the references.

See Also

mmc for the discussion of the MMC and for many examples. The functions mmcisomeans, mmcmatch, mmcboth are the internal functions that do the actual work of plotting.

Examples

Run this code
data(catalystm)
catalystm1.aov <- aov(concent ~ catalyst, data=catalystm)
catalystm.mmc <-
   mmc(catalystm1.aov, linfct = mcp(catalyst = "Tukey"))
mmcplot(catalystm.mmc)
mmcplot(catalystm.mmc, style="both", MMCname="catalyst")

Run the code above in your browser using DataCamp Workspace