afni.color_at_value: the hex color value of any point on the spectrum read from...

View source: R/afni_spectrum.R

afni.color_at_valueR Documentation

the hex color value of any point on the spectrum read from afni.spectrum

Description

the hex color value of any point on the spectrum read from afni.spectrum

Usage

afni.color_at_value(colorval, val)

Arguments

colorval

the list output of afni.spectrum

val

the value for which a color (hex value) position on the spectrum is desired

Examples

 colorval <- afni.spectrum(-5:5)
 afni.color_at_value(colorval,6) # out of range, so highest value 
 afni.color_at_value(colorval,0) # middle value is 

LabNeuroCogDevel/LNCDR documentation built on Oct. 13, 2023, 4:31 a.m.