biPlot performs a principal components analysis and displays the variables and observations in the space of the first two principal components.

biPlot(data, ...)

Arguments

data

a data frame.

...

parameters passed to the factoextra::fviz_pca_biplot function.

Value

a ggplot2 graph

Details

The biPlot function is a wrapper for the prcomp and factoextra::fviz_pca_biplot() functions. For the former, center=TRUE and scale=TRUE are set. For the later, repel=TRUE is set.

See also

Examples

biPlot(USArrests)