View source: R/vis_surface_background.R
collayer.bg | R Documentation |
Compute a binarized mean curvature surface color layer, this is intended as a background color layer. You can merge it with your data layer using collayers.merge
.
collayer.bg(subjects_dir, subject_id, bg, hemi = "both")
subjects_dir |
character string, the FreeSurfer SUBJECTS_DIR. |
subject_id |
character string, the subject identifier. |
bg |
character string, a background name. One of 'curv', 'curv_light', 'sulc', 'sulc_light', or 'aparc'. If this is already a colorlayer in a hemilist, it will be returned as-is. |
hemi |
character string, one of 'lh', 'rh', or 'both'. The latter will merge the data for both hemis into a single vector. |
a color layer, i.e., vector of color strings in a hemilist
You can plot the return value using vis.color.on.subject
.
Other surface color layer:
collayer.bg.atlas()
,
collayer.bg.meancurv()
,
collayer.bg.sulc()
,
collayer.from.annot()
,
collayer.from.annotdata()
,
collayer.from.mask.data()
,
collayer.from.morphlike.data()
,
collayers.merge()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.