common.makecmap.range: Get cmap and colorlayer from data and makecmap_options.

View source: R/vis_surface_background.R

common.makecmap.rangeR Documentation

Get cmap and colorlayer from data and makecmap_options.

Description

Applies a requested 'range' setting if present in makecmap_options. A shared colormap is used for the data of both hemispheres (if present).

Usage

common.makecmap.range(
  makecmap_options,
  lh_data = NULL,
  rh_data = NULL,
  return_metadata = FALSE
)

Arguments

makecmap_options

named list of parameters to pass to makecmap. Must not include the unnamed first parameter, which is derived from 'measure'.

lh_data

numeric vector, data for left hemisphere.

rh_data

numeric vector, data for right hemisphere.

return_metadata

logical, whether to return additional metadata as entry 'metadata' in the returned list

Value

named list, with entries 'map': named list, the squash cmap, and 'collayer': hemilist of color vectors


dfsp-spirit/nitools documentation built on Jan. 26, 2024, 8:24 p.m.