Create a coloredmesh from an annotation of an atlas.
coloredmesh.from.label(subjects_dir, subject_id, label, hemi,
surface = "white", colormap = squash::rainbow2)
string. The FreeSurfer SUBJECTS_DIR, i.e., a directory containing the data for all your subjects, each in a subdir named after the subject identifier.
string. The subject identifier.
string. Name of the label file, without the hemi part (if any), but including the '.label' suffix. E.g., 'cortex.label' for '?h.cortex.label'
string, one of 'lh' or 'rh'. The hemisphere name. Used to construct the names of the label data files to be loaded.
string. The display surface. E.g., "white", "pial", or "inflated". Defaults to "white".
a colormap. See the squash package for some colormaps. Defaults to [squash::rainbow2].
coloredmesh. A named list with entries: "mesh" the [rgl::tmesh3d] mesh object. "col": the mesh colors. "morph_data_was_all_na", logical. Whether the mesh values were all NA, and thus replaced by the all_nan_backup_value. "hemi": the hemisphere, one of 'lh' or 'rh'.