select_roi: Return portion of atlas that falls on or anterior to plane

Description Usage Arguments Details Value Examples

View source: R/data_methods.R

Description

The plane will be defined by fields roi_boundary_{x,y,z}. Function assumes coordinates are in RAI order, meaning that y values on the AP-axis are large in the back and small in the front of the brain.

Usage

1
select_roi(atlas_wplane, anterior = TRUE, raw_index = FALSE)

Arguments

atlas_wplane

Dataframe with xyz coordinates, and roi_boundary_{x,y,z}

anterior

Flag indicating whether to select region anterior or posterior to the plane. Default: anterior

raw_index

Flag to instruct function to return the original aparc.a2009s+aseg indexes, rather than the internal indexes that group together analogous regions in each hemisphere. Default: FALSE

Details

X axis: Left-Right Y axis: Anterior-Posterior Z axis: Inferior-Superior

Value

A subset of atlas_wplane, including voxels that fall on or anterior to plane.

Examples

1
2
3
4
## Not run: 
  coronal_plane(atlas, input, R)

## End(Not run)

crcox/ShinyATLROI documentation built on May 14, 2019, 11:33 a.m.