biPlot: Principal Components Biplot

View source: R/biplot.R

biPlotR Documentation

Principal Components Biplot

Description

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

Usage

biPlot(data, ...)

Arguments

data

a data frame.

...

parameters passed to the factoextra::fviz_pca_biplot function.

Details

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

Value

a ggplot2 graph

Examples

biPlot(USArrests)

Rkabacoff/factorAnalysis documentation built on March 21, 2022, 3:15 p.m.