% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom-brain.R
\name{geom_brain_sf}
\alias{geom_brain_sf}
\title{Deprecated sf brain geom}
\usage{
geom_brain_sf(
  mapping = aes(),
  data = NULL,
  atlas,
  hemi = NULL,
  view = NULL,
  position = NULL,
  show.legend = NA,
  inherit.aes = TRUE,
  ...
)
}
\arguments{
\item{mapping}{Set of aesthetic mappings created by [ggplot2::aes()].}

\item{data}{A data.frame containing variables to map. If `NULL`, the atlas
is plotted without user data. Group it with [dplyr::group_by()] to facet.}

\item{atlas}{A `ggseg_atlas` object (e.g. `dk()`, `aseg()`, `tracula()`).}

\item{hemi}{Character vector of hemispheres to include (e.g. `"left"`,
`"right"`). Defaults to all hemispheres in the atlas.}

\item{view}{Character vector of views to include, as recorded in the atlas
data. For cortical atlases: `"lateral"`, `"medial"`. For subcortical/tract
atlases: slice identifiers like `"axial_3"`. Defaults to all views.}

\item{position}{Position adjustment, either as a string or the result of
a call to [position_brain()].}

\item{show.legend}{Logical. Should this layer be included in the legends?}

\item{inherit.aes}{Logical. If `FALSE`, overrides the default aesthetics
rather than combining with them.}

\item{...}{Additional arguments passed to [ggplot2::geom_polygon()].}
}
\value{
A list of ggplot2 layer and coord objects.
}
\description{
`r lifecycle::badge("deprecated")`

The sf rendering path is deprecated. `geom_brain_sf()` renders an atlas via
[ggplot2::geom_sf()] and [coord_sf()][ggplot2::coord_sf]. For new code, use
[geom_brain()] (the polygon default), or convert the atlas with
`as_sf_atlas()` and use [ggplot2::geom_sf()] directly for the full sf
toolkit (labels, other sf layers).
}
\keyword{internal}
