Learn R Programming

fsbrain (version 0.0.3)

vis.coloredmeshes: Visualize a list of colored meshes in a single scene.

Description

Visualize a list of colored meshes in a single scene.

Usage

vis.coloredmeshes(coloredmeshes, background = "white",
  skip_all_na = TRUE, style = "default", rgloptions = list(),
  rglactions = list(), draw_colorbar = FALSE)

Arguments

coloredmeshes,

list of coloredmesh. A coloredmesh is a named list as returned by the coloredmesh.from.* functions. It has the entries 'mesh' of type tmesh3d, a 'col', which is a color specification for such a mesh.

background

string, background color passed to rgl::bg3d()

skip_all_na

logical, whether to skip (i.e., not render) meshes in the list that have the property 'morph_data_was_all_na' set to TRUE. Defaults to TRUE. Practically, this means that a hemisphere for which the data was not given is not rendered, instead of being rendered in a single color.

style,

a named list of style parameters or a string specifying an available style by name (e.g., 'shiny'). Defaults to 'default', the default style.

rgloptions

option list passed to [rgl::par3d()]. Example: rgloptions = list("windowRect"=c(50,50,1000,1000));

rglactions,

named list. A list in which the names are from a set of pre-defined actions. Defaults to the empty list.

draw_colorbar,

logical. Whether to draw a colorbar. WARNING: Will only show up if there is enough space in the plot area and does not resize properly. Defaults to FALSE. See [fsbrain::coloredmesh.plot.colorbar.separate()] for an alternative.

Value

the list of visualized coloredmeshes