position_brain: Alter brain atlas position

View source: R/position-brain.R

position_brainR Documentation

Alter brain atlas position

Description

Function to be used in the position argument in geom_brain to alter the position of the brain slice/views.

Usage

position_brain(position = "horizontal")

Arguments

position

formula describing the rows ~ columns organisation.

Value

a ggproto object

Examples

library(ggplot2)
ggplot() +
  geom_brain(atlas = dk, aes(fill = region),
             position = position_brain(. ~ side + hemi ),
             show.legend = FALSE)

ggplot() +
  geom_brain(atlas = dk, aes(fill = region),
             position = position_brain(side ~ hemi ),
             show.legend = FALSE)

LCBC-UiO/ggbrain documentation built on April 10, 2023, 6:09 p.m.