View source: R/create-ggseg3d-atlas.R
aparc_2_mesh | R Documentation |
This function will create an atlas ready data.frame for ggseg3d to plot with plotly.
aparc_2_mesh( subject = "fsaverage5", hemisphere = "rh", surface = "inflated", annot = "aparc", subjects_dir = freesurfer::fs_subj_dir(), annot_dir = file.path(subjects_dir, subject, "label"), output_dir = tempdir(), cleanup = TRUE, verbose = TRUE )
subject |
Freesurfer subject, must exist in whatever subject directory specified or set in the environment with $SUBJECTS_DIR |
hemisphere |
hemisphere, either "rh" or "lh" |
surface |
surface from subjects surf-folder |
annot |
base-name of annot file |
subjects_dir |
Freesurfer subject directory |
annot_dir |
path to directory with annot-files |
output_dir |
output directory path |
cleanup |
logical to toggle removal of all intermediary files |
verbose |
logical indicating to be verbose or not |
Based on A. Winkler scripts
data frame with one row per label
## Not run: dt <- aparc_2_mesh() dt <- aparc_2_mesh(surface = "white") dt <- aparc_2_mesh(hemisphere = "lh") dt <- aparc_2_mesh(annot = "aparc.a2009s") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.