Learn R Programming

neuroim2 (version 0.8.5)

resolve_cmap: Neuroimaging color palettes and helpers

Description

Lightweight, perceptually-uniform color tools with safe fallbacks.

Usage

resolve_cmap(name = "grays", n = 256)

Value

A character vector of hex colors.

Arguments

name

Palette name (e.g., "grays", "viridis", "inferno", "magma", "plasma", "turbo", "cividis"). Case-insensitive. If you pass a vector of colors, it's returned unchanged.

n

Number of colors to generate.