Package: ggseg 2.2.1.9000

Athanasia Mo Mowinckel

ggseg: Plotting Tool for Brain Atlases

Provides a 'ggplot2' geom and position for visualizing brain region data on cortical, subcortical, and white matter tract atlases. Brain atlas geometries are stored as polygon data, enabling seamless integration with the 'ggplot2' ecosystem including faceting, custom scales, and themes. Mowinckel & Vidal-Piñeiro (2020) <doi:10.1177/2515245920928009>.

Authors:Athanasia Mo Mowinckel [aut, cre], Didac Vidal-Piñeiro [aut], Ramiro Magno [ctb], Center for Lifespan Changes in Brain and Cognition, University of Oslo, Norway [cph]

ggseg_2.2.1.9000.tar.gz
ggseg_2.2.1.9000.zip(r-4.7)ggseg_2.2.1.9000.zip(r-4.6)ggseg_2.2.1.9000.zip(r-4.5)
ggseg_2.2.1.9000.tgz(r-4.6-any)ggseg_2.2.1.9000.tgz(r-4.5-any)
ggseg_2.2.1.9000.tar.gz(r-4.7-any)ggseg_2.2.1.9000.tar.gz(r-4.6-any)
ggseg_2.2.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
ggseg/json (API)

# Install 'ggseg' in R:
install.packages('ggseg', repos = c('https://ggsegverse.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ggsegverse/ggseg/issues

Pkgdown/docs site:https://ggsegverse.github.io

On CRAN:

Conda:

11.97 score 264 stars 1 packages 766 scripts 1.5k downloads 9 mentions 34 exports 33 dependencies

Last updated from:fd1ee1b557. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK190
source / vignettesOK223
linux-release-x86_64OK182
macos-release-arm64OK100
macos-oldrel-arm64OK163
windows-develOK119
windows-releaseOK116
windows-oldrelOK136
wasm-releaseOK172

Exports:annotate_brainasegbrain_joincoord_braindkgeom_braingeom_brain_sfGeomBrainggsegposition_brainposition_brain_sfreposition_brainscale_brainscale_brain_manualscale_brain2scale_color_brainscale_color_brain_manualscale_color_brain2scale_colour_brainscale_colour_brain_manualscale_colour_brain2scale_continous_brainscale_fill_brainscale_fill_brain_manualscale_fill_brain2scale_labs_brainscale_x_brainscale_y_brainsuittheme_braintheme_brain2theme_custombraintheme_darkbraintracula

Dependencies:clicpp11dplyrfarvergenericsgeometriesggplot2ggseg.formatsgluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigpurrrR6RColorBrewerRcpprlangS7scalessfheadersstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Arranging brain views
Cortical atlases | Stacking all views | Subcortical and tract atlases | Horizontal and vertical | Grid layouts | Picking specific views | Grouping by slice type | Adding view labels | Zooming in on regions of interest | Focus on the regions in your data | Name the focus regions explicitly | Control the margin with zoom_pad | Dropping the grey context | The sf workflow

Last update: 2026-06-15
Started: 2026-02-19

Getting started with ggseg
What's in a brain atlas | Your first brain plot | Arranging views | Showing only certain hemispheres or views | Plotting your own data | Faceting | Highlighting specific regions | Scales and themes | Going further | Finding more atlases

Last update: 2026-06-15
Started: 2018-08-30

Plotting external data
How matching works | A minimal example | Constraining matches with extra columns | Faceting across groups | Troubleshooting | Full control with sf

Last update: 2026-06-15
Started: 2026-02-19

Reading FreeSurfer stats files
Reading a single stats file | Reading stats files across subjects | Reading FreeSurfer stats tables | Cleaning label suffixes | Filtering non-region rows

Last update: 2026-06-15
Started: 2026-02-19

Readme and manuals

Help Manual

Help pageTopics
Add view labels to brain atlas plotsannotate_brain
Join user data with a brain atlasbrain_join
Keep brain shapes undistortedcoord_brain
Plot brain atlas regionsGeomBrain geom_brain
Arrange brain atlas viewsposition_brain
Reposition brain slicesreposition_brain
Colour and fill scales from brain atlas palettesscale_brain scale_color_brain scale_colour_brain scale_fill_brain
Manual colour and fill scales for brain plotsscale_brain_manual scale_color_brain_manual scale_colour_brain_manual scale_fill_brain_manual
Deprecated scale functionsscale_brain2 scale_brain2-deprecated scale_color_brain2 scale_colour_brain2 scale_fill_brain2
Axis and label scales for brain atlas plotsscale_continous_brain scale_labs_brain scale_x_brain scale_y_brain
Themes for brain atlas plotstheme_brain theme_brain2 theme_custombrain theme_darkbrain