% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classes.R
\name{scale_train}
\alias{scale_train}
\title{Train a scale on data values}
\usage{
scale_train(scale, ...)
}
\arguments{
\item{scale}{A \link{Scale} subclass instance.}

\item{...}{Method arguments; all methods take \code{values}, the raw data
vector mapped to this scale's aesthetic.}
}
\value{
The scale, with \code{domain} filled in.
}
\description{
Learns the scale's domain (its trained data range). User-supplied
\code{limits} win over the data range. Returns an updated scale — S7 objects
are values, so training is a functional update, not a mutation.
}
