diverging_colormap: Custom diverging colormap for neuroimaging

View source: R/colorbar.R

diverging_colormapR Documentation

Custom diverging colormap for neuroimaging

Description

Returns a blue-white-red diverging colormap suitable for displaying signed morphometry data (e.g. cortical thickness Z-scores).

Usage

diverging_colormap(n)

Arguments

n

Number of colors.

Value

A character vector of hex color strings.

Examples

cols <- diverging_colormap(256)
plot(1:256, pch = 15, col = cols, cex = 2, axes = FALSE, xlab = "", ylab = "")


scimesh documentation built on Aug. 9, 2026, 9:07 a.m.