mc_plot | R Documentation |
For grouped data. Draws boxplots for each group and overlays with confidence intervals for pairwise comparison of means.
mc_plot(data, fit, path = eulerian, col = rainbow(length(data), s = 0.4), levels = c(0.9, 0.95, 0.99), varwidth = TRUE, frame.plot = FALSE, boxwex = 0.3, cex=0.75, zoom=NULL,ci.yusr=NULL,ci.pos=FALSE,...)
data |
A list of vectors, such as that returned by |
fit |
Either an |
path |
an index vector or a function. If a vector, groups are plotted in order |
col |
A vector of colours, one per group. |
levels |
Vector of increasing confidence levels. |
varwidth |
Passed to |
frame.plot |
Passed to |
boxwex |
Passed to |
cex |
Passed to |
zoom |
If provided, a numeric vector specifying a subsequence of path to display. |
ci.yusr |
Specifies the vertical |
ci.pos |
If TRUE, all CIs are mu(max) - mu(min), otherwise mu(right) - mu(left). |
... |
Optional arguments, passed to |
C.B. Hurley and R.W. Oldford
see overview
See also overlayCI
require(PairViz) data(cancer) bx <- with(cancer, split(sqrt(Survival),Organ)) a <- aov(sqrt(Survival) ~ Organ,data=cancer) ## Not run: dev.new(height=4.5, width=9.5) op <- par(no.readonly = TRUE) par(cex.axis=.75, cex.main = 1.0, cex.lab=1) par(mar=c(3,5,3,5)) mc_plot(bx,a,main="Pairwise comparisons of cancer types", ylab="Sqrt Survival") par(op) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.