Description Usage Arguments Value
Use dimension reduction (Principle Component Analysis) to visualize a classification/regression data in a 2D or 3D plot
1 |
formula |
regression or classification formula. If classification, the left hand side must be a factor or character. If regression, the left hand side must be numeric. |
data |
Data Frame or matrix for the formula |
dim |
Dimmension to be plotted. If null, will plot 2D if only 2 predictors, 3D otherwise. |
A list of: Plot
: the plot, VarExplained
: proportion of variance explained by each PC, TotalVarExplained
: total proportion of variance explained by PCs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.