map_to_schaefer | R Documentation |
Converts values associated with atlas regions into a format suitable for visualization with the Schaefer atlas in ggseg.
map_to_schaefer(atlas, vals, thresh = c(0, 0), pos = FALSE)
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 |
A ggseg brain atlas object with mapped values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.