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

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

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

\item{...}{Additional arguments (currently unused)}
}
\value{
A \code{\link[gt]{gt}} table object.
}
\description{
Produces a styled gt table of variable loadings on each principal component,
with a diverging colour scale to highlight strong loadings.
}
\examples{
\donttest{
model <- tl_model(iris[, 1:4], method = "pca")
tl_table_loadings(model)
}
}
