brain_atlas: Constructor for brain atlas

View source: R/brain_atlas.R

brain_atlasR Documentation

Constructor for brain atlas

Description

Creates an object of class 'brain_atlas' that is compatible for plotting using the ggseg-package plot functions

Usage

brain_atlas(atlas, type, data, palette = NULL)

Arguments

atlas

atlas short name, length one

type

atlas type, cortical or subcortical, length one

data

data.frame with atlas data

palette

named character vector of colours

Value

an object of class 'brain_atlas' containing information on atlas name, type, data and palette. To be used in plotting with geom_brain.


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