ggbrain: Brain geom

geom_brainR Documentation

Brain geom

Description

call to geom_sf

Usage

geom_brain(
  mapping = aes(),
  data = NULL,
  atlas,
  hemi = NULL,
  side = NULL,
  position = position_brain(),
  show.legend = NA,
  inherit.aes = TRUE,
  ...
)

Arguments

mapping

argument to pass to aes to map variables from the supplied data to the plot

data

data.frame with data to plot

atlas

object of type brain_atlas to plot

hemi

hemisphere to plot. Defaults to everything in the atlas.

side

slice to plot, as recorded in the "side" column in the atlas data. Defaults to all.

position

position of the data. Default is "identity" but can be changed by position_brain.

show.legend

logical. Should legend be added or not.

inherit.aes

logical. if aes should be inherited from the main ggplot call or not

...

arguments to geom_sf

Value

ggplot object

Examples

library(ggplot2)

ggplot() +
 geom_brain(atlas = dk)

ggseg documentation built on June 13, 2022, 5:07 p.m.