% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/unsupervised-pca.R
\name{tidy_pca_biplot}
\alias{tidy_pca_biplot}
\title{Create PCA Biplot}
\usage{
tidy_pca_biplot(
  pca_obj,
  pc_x = 1,
  pc_y = 2,
  color_by = NULL,
  arrow_scale = 1,
  label_obs = FALSE,
  label_vars = TRUE
)
}
\arguments{
\item{pca_obj}{A tidy_pca object}

\item{pc_x}{Principal component for x-axis (default: 1)}

\item{pc_y}{Principal component for y-axis (default: 2)}

\item{color_by}{Optional column name to color points by}

\item{arrow_scale}{Scaling factor for variable arrows (default: 1)}

\item{label_obs}{Logical; label observations? (default: FALSE)}

\item{label_vars}{Logical; label variables? (default: TRUE)}
}
\value{
A \code{\link[ggplot2]{ggplot}} object.
}
\description{
Visualize both observations and variables in PC space
}
\examples{
\donttest{
pca <- tidy_pca(USArrests)
tidy_pca_biplot(pca)
}

}
