makecmakeopts.merge: Create final 'makecmap_options' list

Description Usage Arguments Value Note

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

1
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'

Note

For backwards compatibility, there are currently two different methods (parameters) to specify a colormap in the vis functions. This function merges the information from both methods.


neuroconductor/fsbrain documentation built on Sept. 16, 2020, 2:30 p.m.