position_brain: Alter brain atlas position

Description Usage Arguments Examples

View source: R/position-brain.R View source: R/old/geom.R

Description

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

Usage

1
position_brain(position = "horizontal")

Arguments

position

formula describing the rows ~ columns organisation.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

neuroconductor/ggseg documentation built on May 15, 2021, 11:21 p.m.