pca_biplot: Biplot of a PCA model

Description Usage Arguments Value

Description

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.

Usage

1
2
pca_biplot(model, point_id = NULL, dim = c(1, 2), min_cor = 0.3,
  biplot = TRUE)

Arguments

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

Value

ind

Data of the individual coordinates on the dimensions.

loadings

Data of the variable loadings on the dimensions.

plot

The ggplot object.


Dynge/r_dynge documentation built on July 1, 2019, 11:21 p.m.