View source: R/afni_spectrum.R
afni_save_spectrum | R Documentation |
wrapper for optionally creating a pdf of plot_colorspectrum(afni.spectrum(...)))
afni_save_spectrum(
volumemax,
savename = NA,
threshold = NA,
ispos = F,
posonly = F,
img = NULL,
...
)
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 |
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.