
ggseg.formats provides the ggseg_atlas S3 class that powers the
ggsegverse ecosystem for 2D and
3D brain visualisation. It ships four bundled atlases, a set of accessor
functions for querying atlas contents, and a pipe-friendly manipulation
API for subsetting, renaming, and enriching atlas objects.
The package includes four atlases covering the main atlas types:
library(ggseg.formats)
plot(dk())

plot(aseg())

plot(tracula())

plot(suit())

Atlas objects are designed for exploration and customisation. You can query regions, filter views, and pipe operations together:
aseg_small <- aseg() |>
atlas_region_keep("hippocampus|amygdala|thalamus") |>
atlas_view_keep("coronal_3|axial_3") |>
atlas_view_gather()
plot(aseg_small)

Install from the ggsegverse r-universe:
options(repos = c(
ggsegverse = 'https://ggsegverse.r-universe.dev',
CRAN = 'https://cloud.r-project.org'))
install.packages('ggseg.formats')
Or install the development version from GitHub:
# install.packages("devtools")
devtools::install_github("ggsegverse/ggseg.formats")
vignette("ggseg.formats") — understanding atlas structure and
accessorsvignette("atlas-manipulation") — region, view, and metadata
manipulationAny scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.