afni_save_spectrum: wrapper for optionally creating a pdf of...

View source: R/afni_spectrum.R

afni_save_spectrumR Documentation

wrapper for optionally creating a pdf of plot_colorspectrum(afni.spectrum(...)))

Description

wrapper for optionally creating a pdf of plot_colorspectrum(afni.spectrum(...)))

Usage

afni_save_spectrum(
  volumemax,
  savename = NA,
  threshold = NA,
  ispos = F,
  posonly = F,
  img = NULL,
  ...
)

Arguments

volumemax

- maximum value for spectrum

threshold

- where to cut off data

ispos

- spectrum starts at 0 instead of -volumemax

posonly

- only show spectrum for >0 values (ispos=F, posonly=T == BTC)

...

other options for plot_colorspectrum (lab="val", side=2, ax=T)

pdf

name

Examples

 # spectrum goes from -10 to 10, show only 2 to 10
 afni_save_spectrum(10, thres=2, onlypos=T, lab="F stat")
 # spectrum goes from 0 to 10, show only 2 to 10
 afni_save_spectrum(10, thres=2, ispos=T, lab="F stat")
 # thresholded w/neg postive and better axis labels
 afni_save_spectrum(10,threshold=5,ispos=F,lab="F",ax=F) 
 axis(side=2,at=c(-10,-5,5,10),labels=c("-10","-5","5","10"),las=2)
 # with image saved from afni color bar
 afni_save_spectrum(10,img="saved_spectrum.png") 

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