plot.fsbrain.colorbar: Draw a simple colorbar from colors.

plot.fsbrain.colorbarR Documentation

Draw a simple colorbar from colors.

Description

Draw a simple colorbar from colors.

Usage

## S3 method for class 'fsbrain.colorbar'
plot(colors, horizontal = FALSE)

Arguments

colors

vector of colors, no special ordering is assumed

horizontal

logical, whether the colorbar should be plotted horizontally (or vertically).

Note

This function assumes that there is an open plot, use plot.new() to create one before calling this function if that is not the case.


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