plot.l1pcahp | R Documentation |
Plots the scores on the first two principal components.
## S3 method for class 'l1pcahp' plot(x, ...)
x |
an object of class |
... |
arguments to be passed to or from other methods. |
This function is a method for the generic function plot
, for objects of class l1pcahp
.
l1pcastar
##for a 100x10 data matrix X, ## lying (mostly) in the subspace defined by the first 2 unit vectors, ## projects data into 1 dimension. X <- matrix(c(runif(100*2, -10, 10), rep(0,100*8)),nrow=100) + matrix(c(rep(0,100*2),rnorm(100*8,0,0.1)),ncol=10) myl1pcahp <- l1pcahp(X) ##projects data into 2 dimensions. myl1pcahp <- l1pcahp(X, projDim=2, center=FALSE, projections="l1") ## plot first two scores plot(myl1pcahp$scores)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.