Learn R Programming

fsbrain (version 0.0.3)

draw.colorbar: Draw coloredbar into background of current plot.

Description

Requires a rgl 3d visualisation to be open that already contains a rendered object. Uses [rgl::bgplot3d()] to add a colorbar in the background of the plot. Experimental.

Usage

draw.colorbar(coloredmeshes, horizontal = TRUE, num_steps = 100)

Arguments

coloredmeshes

list of coloredmeshes. 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.

horizontal

logical, whether the colorbar should be drawn in horizontal oritentation. Defaults to TRUE.

num_steps

integer, number of steps to use for the colorbar. Defaults to 100.