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

View source: R/cbar.R

draw.colorbarR Documentation

Draw colorbar 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

coloredmeshes

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

horizontal

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

...

extra params passed to image.plot

Note

To adapt or change the colormap, you should use the 'makecmap_options' parameter of the vis.* function used to construct the coloredmeshes (e.g., vis.subject.morph.native).


dfsp-spirit/fsbrain documentation built on Nov. 28, 2024, 10:29 a.m.