coloredmesh.from.preloaded.data: Generate coloredmesh from loaded data.

Description Usage Arguments Value

View source: R/coloredmesh.R

Description

Generate coloredmesh from loaded data.

Usage

1
2
3
4
5
6
7
coloredmesh.from.preloaded.data(
  fs_surface,
  morph_data = NULL,
  col = NULL,
  hemi = "lh",
  makecmap_options = mkco.seq()
)

Arguments

fs_surface

an fs.surface instance or a character string, which will be interpreted as the path to a file and loaded with freesurferformats::read.fs.surface.

morph_data

numerical vector, per-vertex data (typically morphometry) for the mesh. If given, takes precedence over 'col' parameter.

col

vector of colors, typically hex color strings like '#FF00FF'. The per-vertex-colors for the mesh. Alternative to morph_data.

hemi

character string, one of 'lh' or 'rh'. Metadata, the hemisphere. May be used by visualization functions to decide whether to draw the mesh in certain views.

makecmap_options

named list of parameters to pass to makecmap. Must not include the unnamed first parameter, which is derived from 'measure'.

Value

as fs.coloredmesh instance


fsbrain documentation built on May 12, 2021, 5:06 p.m.