### Name: mt.plot ### Title: Plotting results from multiple testing procedures ### Aliases: mt.plot ### Keywords: hplot ### ** Examples # Gene expression data from Golub et al. (1999) # To reduce computation time and for illustrative purposes, we condider only # the first 100 genes and use the default of B=10,000 permutations. # In general, one would need a much larger number of permutations # for microarray data. data(golub) smallgd<-golub[1:100,] classlabel<-golub.cl # Permutation unadjusted p-values and adjusted p-values for maxT procedure res1<-mt.maxT(smallgd,classlabel) rawp<-res1$rawp[order(res1$index)] teststat<-res1$teststat[order(res1$index)] # Permutation adjusted p-values for simple multiple testing procedures procs<-c("Bonferroni","Holm","Hochberg","SidakSS","SidakSD","BH","BY") res2<-mt.rawp2adjp(rawp,procs) # Plot results from all multiple testing procedures allp<-cbind(res2$adjp[order(res2$index),],res1$adjp[order(res1$index)]) dimnames(allp)[[2]][9]<-"maxT" procs<-dimnames(allp)[[2]] procs[7:9]<-c("maxT","BH","BY") allp<-allp[,procs] cols<-c(1:4,"orange","brown","purple",5:6) ltypes<-c(3,rep(1,6),rep(2,2)) # Ordered adjusted p-values mt.plot(allp,teststat,plottype="pvsr",proc=procs,leg=c(80,0.4),lty=ltypes,col=cols,lwd=2) # Adjusted p-values in original data order mt.plot(allp,teststat,plottype="pvsi",proc=procs,leg=c(80,0.4),lty=ltypes,col=cols,lwd=2) # Number of rejected hypotheses vs. level of the test mt.plot(allp,teststat,plottype="rvsa",proc=procs,leg=c(0.05,100),lty=ltypes,col=cols,lwd=2) # Adjusted p-values vs. test statistics mt.plot(allp,teststat,plottype="pvst",logscale=TRUE,proc=procs,leg=c(0,4),pch=ltypes,col=cols)