Learn R Programming

fsbrain (version 0.4.2)

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 bgplot3d to add a colorbar in the background of the plot using image.plot. Experimental.

Usage

draw.colorbar(coloredmeshes, horizontal = FALSE, ...)

Arguments

horizontal

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

...

extra params passed to image.plot

coloredmesh

fs.coloredmesh as returned by the coloredmesh.from.* functions.