biPlot
performs a principal components analysis and displays the variables
and observations in the space of the first two principal components.
biPlot(data, ...)
a data frame.
parameters passed to the factoextra::fviz_pca_biplot
function.
a ggplot2 graph
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.
biPlot(USArrests)