Learn R Programming

pi0 (version 1.3-250)

plot.extrpi0: Plotting the Estimated Regression Surface

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

## 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.

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

Run this code
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)

Run the code above in your browser using DataLab