afni.spectrum: AFNI color spectrum -> R object

View source: R/afni_spectrum.R

afni.spectrumR Documentation

AFNI color spectrum -> R object

Description

AFNI color spectrum -> R object

Usage

afni.spectrum(coloreddata, img = NULL)

Arguments

coloreddata

1) the single autoRange or manual range value provided to the AFNI "Define Overlay" gui. OR 2) the vector of data the spectrum has been applied to. This can be just the range in lieu of the actual data. Use this option if "Pos?" is checked like colordata=c(0,4.44). N.B. colordata=4.44 is the same as coloreddata=c(-4.44,4.44).

img

the jpeg exported afni spectrum. Right click 'OLay' -> export ppm. Use this when using discrete or customized color scales.

Examples

 # range value set to 5 in afni
 colorvals <- afni.spectrum(5)
 # same as
 colorvals <- afni.spectrum(-5:5)
 # same as
 colorvals <- afni.spectrum(c(-5,5))
 # if Pos? is checked 
 colorvals <- afni.spectrum(c(0,5)) 

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