% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/brain-mesh.R
\name{vertices_to_labels}
\alias{vertices_to_labels}
\title{Map atlas vertex indices to region labels}
\usage{
vertices_to_labels(atlas_data, n_vertices, na_label = NA_character_)
}
\arguments{
\item{atlas_data}{Data frame with region and vertices columns}

\item{n_vertices}{Number of vertices in the mesh}

\item{na_label}{Label for vertices not in any region}
}
\value{
Character vector of labels, one per mesh vertex
}
\description{
Given a ggseg_atlas with vertices column and a brain mesh, creates a label
vector for each mesh vertex based on which region it belongs to.
}
\keyword{internal}
