Learn R Programming

ggseg (version 1.6.7)

position_brain: 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")

Value

a ggproto object

Arguments

position

formula describing the rows ~ columns organization.

Examples

Run this code
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)

Run the code above in your browser using DataLab