% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggseg3d.R
\name{apply_colours_and_legend}
\alias{apply_colours_and_legend}
\title{Apply colour palette and build legend data}
\usage{
apply_colours_and_legend(atlas_data, colour_by, palette, na_colour, label_by)
}
\arguments{
\item{atlas_data}{Prepared atlas data frame}

\item{colour_by}{Column name for colour values}

\item{palette}{Colour palette specification}

\item{na_colour}{Colour for NA values}

\item{label_by}{Column name for labels}
}
\value{
List with `atlas_data` and `legend_data`
}
\description{
Shared pipeline step for all atlas types: applies colour palette to
atlas data and builds the legend data structure.
}
\keyword{internal}
