ggseg: ggseg: Visualise brain atlas data with ggplot2

View source: R/ggseg.R

ggsegR Documentation

ggseg: Visualise brain atlas data with ggplot2

Description

Provides a ggplot2 geom and position for visualising brain region data on cortical, subcortical, and white matter tract atlases. Brain atlas geometries are stored as simple features (sf), enabling seamless integration with the ggplot2 ecosystem including faceting, custom scales, and themes.

'ggseg()' is defunct as of version 2.0.0. Use 'ggplot() + geom_brain()' instead.

Usage

ggseg(...)

Arguments

...

Ignored.

Details

The main entry point is [geom_brain()], which accepts a 'ggseg_atlas' object and optional user data. Use [position_brain()] to control the layout of brain slices/views.

Value

Does not return; always raises an error.

Author(s)

Maintainer: Athanasia Mo Mowinckel a.m.mowinckel@psykologi.uio.no (ORCID) [copyright holder]

Authors:

Other contributors:

  • Center for Lifespan Changes in Brain and Cognition, University of Oslo, Norway [copyright holder]

See Also

Useful links:

[geom_brain()] for the replacement API.

Examples

## Not run: 
ggseg()

## End(Not run)

ggseg documentation built on April 3, 2026, 5:06 p.m.