Create a coloredmesh from native space morphometry data.
coloredmesh.from.morph.native(subjects_dir, subject_id, measure, hemi,
surface = "white", colormap = squash::jet, clip = NULL,
cortex_only = FALSE)
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. The morphometry data to use. E.g., 'area' or 'thickness.'
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 function. See the squash package for some colormaps. Defaults to [squash::jet].
numeric vector of length 2 or NULL. If given, the 2 values are interpreted as lower and upper percentiles, and the morph data is clipped at the given lower and upper percentile (see [fsbrain::clip.data()]). Defaults to NULL (no data clipping).
logical, whether to mask the medial wall, i.e., whether the morphometry data for all vertices which are *not* part of the cortex (as defined by the label file `label/?h.cortex.label`) should be replaced with NA values. In other words, setting this to TRUE will ignore the values of the medial wall between the two hemispheres. If set to true, the mentioned label file needs to exist for the subject. Defaults to FALSE.
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'.