Plot a PCA analisys into a biplot.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
pca_result |
PCA result to plot. |
groups |
optional factor variable indicating the groups that the observations belong to. If provided the points will be colored according to groups |
alpha |
alpha transparency value for the points (0 = transparent, 1 = opaque) |
title |
a title. |
ellipse |
draw a normal data ellipse for each group? |
colours |
groups colors. |
labels |
optional vector of labels for the observations |
obs.scale |
scale factor to apply to observations |
var.scale |
scale factor to apply to variables |
varname.adjust |
adjustment factor the placement of the variable names, >= 1 means farther from the arrow |
varname.size |
size of the text for variable names |
scale |
covariance biplot (scale = 1), form biplot (scale = 0). When scale = 1, the inner product between the variables approximates the covariance and the distance between the points approximates the Mahalanobis distance. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.