Learn R Programming

someMTP (version 1.4.1)

draw: Plots results of fdrOrd()

Description

Plots results of fdrOrd()

Usage

draw(object, what = c("all", "ordVsP", "stepVsR"), pdfName = NULL)

Arguments

object
a someMTP.object resulting from fdrOrd()
what
what to plot; "all" is the default
pdfName
it is the pdf filename where the plot will be saved. If pdfNane is null (the default) the plot will show as window.

Value

No value is returned

See Also

See Also fdrOrd.

Examples

Run this code
set.seed(17)
	x=matrix(rnorm(60),3,20)
	x[,1:10]=x[,1:10]+2 ##variables 1:10 have tests under H1
	ts=apply(x,2,function(x) t.test(x)$statistic)
	ps=apply(x,2,function(x) t.test(x)$p.value)
	m2=apply(x^2,2,mean)
	pOrd <- fdrOrd(ps,q=.05,ord=m2)	
	draw(pOrd)

Run the code above in your browser using DataLab