plotPca | R Documentation |
Plot the two first principal components from a PCA.
plotPca(
rotation,
prop.vars,
idx.x = 1,
idx.y = 2,
plot = "points",
main = "PCA",
cols = rep("black", nrow(rotation)),
pchs = rep(20, nrow(rotation)),
...
)
rotation |
matrix of rotated data which columns corresponds to "principal components" (the first column will be plotted along the x-axis against the second column along the y-axis) |
prop.vars |
vector with the proportion of variance explained per PC |
idx.x |
index of the column from "rotation" that will be plotted along the x-axis |
idx.y |
index of the column from "rotation" that will be plotted along the y-axis |
plot |
use "points" to show a plot with |
main |
main title of the plot |
cols |
N-vector of colors |
pchs |
N-vector of point symbols (used if |
... |
arguments to be passed to |
nothing
Timothee Flutre
pca
, orthoRotate2D
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.