PMplot | R Documentation |
Creates a plot of p-values of pairwise comparisons.
PMplot(pmatrix, level=0.05, mtitle=NULL, xylabel=NULL, margin=5, legendx=0.73,
newwd=TRUE)
pmatrix |
A matrix with p-values from pairwise comparisons. (This is a lower triangle matrix.) |
level |
The level of p-value to be highlighted. Default is 0.05. |
mtitle |
The main title in the graph. |
xylabel |
The x and y labels in the graph. |
margin |
A value for specifying x and y margins in the graph. The default value is 5. |
legendx |
A value for specifying x coordinate of legend. The default value is 0.73. |
newwd |
A logical variable to indicate whether to print graph in a new window. The default is TRUE. |
Dongwen Luo, Siva Ganesh and John Koolaard
library(predictmeans)
set.seed(2013)
pvalues <- runif(28)
pmatrix <- matrix(0,8,8)
pmatrix[lower.tri(pmatrix)] <- pvalues
round(pmatrix, 4)
PMplot(pmatrix)
Oats$nitro <- factor(Oats$nitro)
fm <- lmer(yield ~ nitro*Variety+(1|Block/Variety), data=Oats)
predictout <- predictmeans(fm, "nitro:Variety", atvar="Variety", adj="BH", barplot=TRUE)
PMplot(predictout$p_valueMatrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.