Skip to contents

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 tibble with mapped values suitable for ggseg visualization