eigenR2plot {eigenR2} | R Documentation |
Graphical display of the information captured the eigenvectors.
eigenR2plot(eigenR2obj) plot.eigenR2(x,...)
eigenR2obj, x |
An eigenR2 object. |
... |
Plotting arguments. |
The function graphically displays the information captured by the eigenvectors, including:
eigen.sig
is specified.
None.
Lin S. Chen lschen@princeton.edu and John D. Storey jstorey@princeton.edu
Chen LS and Storey JD (2008) Eigen-R2 for dissecting the variation in high-dimensional studies.
## Not run: ## Load the simulated data. ## The data set contains age, genotype and IDs for 50 arrays. ## The expression matrix is a 200 genes by 50 array matrix data(eigSdat) exp <- eigSdat$exp exp <- t(apply(exp, 1, function(x) x-mean(x))) varList <- eigSdat$varList age <- varList$age geno <- varList$geno ID <- varList$ID ## the eigen R-square for variable "age" mod2 <- model.matrix(~1+age+as.factor(geno)) eigenR2.g <- eigenR2(dat=exp, model=mod2) plot.eigenR2(eigenR2.g) ## End(Not run)