Description Usage Arguments Value
This function creates a biplot of the PCA model. You can adjust which dimensions to plot, aswell as the threshold for correlations to be shown. You can also forego the correlation arrows with biplot = FALSE.
1 2 |
model |
The PCA model from FactoMineR. |
point_id |
A vector of labels to the individual points. Ignore this if you do not want labels. |
dim |
The dimensions to be plotted. Defaults to c(1,2). |
min_cor |
The minimal correlation value to plot arrow. Defaults to .3. |
biplot |
A boolean for whether or not to produce a biplot and therefore add correlation arrows. Defaults to TRUE |
ind |
Data of the individual coordinates on the dimensions. |
loadings |
Data of the variable loadings on the dimensions. |
plot |
The ggplot object. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.