Learn R Programming

predictmeans (version 0.97)

PMplot: Level Plot of a Matrix of p-values.

Description

Creates a plot of p-values of pairwise comparisons.

Usage

PMplot(pmatrix, level=0.05, mtitle=NULL, xylabel=NULL, margin=5, legendx=0.73, 
  newwd=TRUE)

Arguments

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.

Examples

Run this code
library(predictmeans)
set.seed(2013)
pvalues <- runif(28)
pmatrix <- matrix(0,8,8)
pmatrix[lower.tri(pmatrix)] <- pvalues
round(pmatrix, 4)
PMplot(pmatrix)

Run the code above in your browser using DataLab