plot.extrpi0: Plotting the Estimated Regression Surface

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/plot.extrpi0.R

Description

This function plots the regression surface, overlaid with 3D scatter plot, for objects of class extrpi0, typically resulting from calling the function extrp.pi0.

Usage

1
2
## S3 method for class 'extrpi0'
plot(x,y,rgl=TRUE,...)

Arguments

x

the extrpi0 object.

y

the same as rgl. If not missing, it overrides rgl.

rgl

logical, specifying whether or not the rgl package is used for making better 3D interactive graphs.

...

other arguments to be passed to either persp3d, or persp if rgl is not available.

Value

an invisible(NULL). Used for side effects only.

Note

When rgl is not available, a warnging is always generated.

Author(s)

Long Qu

References

Qu, L., Nettleton, D., Dekkers, J.C.M. Subsampling Based Bias Reduction in Estimating the Proportion of Differentially Expressed Genes from Microarray Data. Unpublished manuscript.

See Also

rgl,extrp.pi0

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
set.seed(9992722)
## this is how the 'simulatedDat' data set in this package generated
simulatedDat=sim.dat(G=5000)	
## this is how the 'simulatedSubt' object in this package generated
simulatedSubt=subt(simulatedDat,balanced=FALSE,max.reps=Inf) 
## this is how the 'simulatedExtrpi0' data set in this package generated
simulatedExtrpi0=extrp.pi0(simulatedSubt,plotit=FALSE) 
plot(simulatedExtrpi0)
plot(simulatedExtrpi0,FALSE)

## End(Not run)

pi0 documentation built on May 2, 2019, 4:47 p.m.