plot.pocre {POCRE}R Documentation

Visualization of a pocre Object

Description

Plot the regression coefficients, and the loadings of all components for a fitted model by POCRE.

Usage

## S3 method for class 'pocre'
plot(x, x.id = NA, which=1:2, cex=.5, ...)

Arguments

x

a pocre object, i.e., the result from pocre.

x.id

a vector indicating the indices or positions of the covariates in the original data.

which

1 for plotting the regression coefficients, 2 for plotting the loadings of all components.

cex

A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default, see par.

...

additional arguments accepted by ggplot.

Author(s)

Dabao Zhang, Zhongli Jiang, Zeyu Zhang, Department of Statistics, Purdue University

References

Zhang D (2018). R package POCRE: Exploring high-dimensional data via supervised dimension reduction. Manuscript.

Zhang D, Lin Y, and Zhang M (2009). Penalized orthogonal-components regression for large p small n data. Electronic Journal of Statistics, 3: 781-796.

See Also

pocre, plot.pocrepath, pocrepath.

Examples

data(simdata)
xx <- scale(as.matrix(simdata[,-1]))
yy <- scale(as.matrix(simdata[,1]))

##Fit with pocre()
pres <- pocre(yy, xx, lambda=0.9)

# plot(pres,which=1)
plot(pres)

[Package POCRE version 0.6.0 Index]