plot.pocre | R Documentation |
pocre
Object
Plot the regression coefficients, and the loadings of all components for a fitted model by POCRE.
## S3 method for class 'pocre' plot(x, x.id = NA, which=1:2, cex=.5, ...)
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. |
Dabao Zhang, Zhongli Jiang, Zeyu Zhang, Department of Statistics, Purdue University
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.
pocre
, plot.pocrepath
, pocrepath
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.