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