map_to_schaefer: Map Values to Schaefer Atlas Format

View source: R/ggschaefer.R

map_to_schaeferR Documentation

Map Values to Schaefer Atlas Format

Description

Converts values associated with atlas regions into a format suitable for visualization with the Schaefer atlas in ggseg.

Usage

map_to_schaefer(atlas, vals, thresh = c(0, 0), pos = FALSE)

Arguments

atlas

An atlas object containing Schaefer parcellation information

vals

Numeric vector of values to map to atlas regions

thresh

Numeric vector of length 2 specifying (min, max) thresholds. Values outside this range will be set to NA. Default: c(0,0)

pos

Logical. If TRUE, uses raw values; if FALSE, uses absolute values for thresholding. Default: FALSE

Value

A ggseg brain atlas object with mapped values


bbuchsbaum/neuroatlas documentation built on Dec. 24, 2024, 4:22 a.m.