Learn R Programming

fsbrain (version 0.4.3)

makecmakeopts.merge: Create final `makecmap_options` list

Description

Create final makecmap_options to pass to makecmap from existing `makecmap_options` and a colormap function. Used in the vis functions, like vis.subject.morph.native, see the note.

Usage

makecmakeopts.merge(makecmap_options, colormap, default_colormap = squash::jet)

Arguments

makecmap_options

list of `makecmap_options` or `NULL`. Must contain at least the 'colFn' entry pointing to a colormap function.

colormap

a colormap function or `NULL`. Will trigger a warning if not `NULL`.

default_colormap

the colormap function to use in case none is found in the other parameters

Value

valid `makecmap_options`