% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tables.R
\name{tl_table_variance}
\alias{tl_table_variance}
\title{Formatted PCA variance explained table}
\usage{
tl_table_variance(model, n_components = NULL, digits = 4, ...)
}
\arguments{
\item{model}{A tidylearn PCA model object}

\item{n_components}{Maximum number of components to show (default: all)}

\item{digits}{Number of decimal places (default: 4)}

\item{...}{Additional arguments (currently unused)}
}
\value{
A \code{\link[gt]{gt}} table object.
}
\description{
Produces a styled gt table of variance explained by each principal component,
with a colour gradient on cumulative variance.
}
\examples{
\donttest{
model <- tl_model(iris[, 1:4], method = "pca")
tl_table_variance(model)
}
}
