View source: R/afni_spectrum.R
afni.color_at_value | R Documentation |
the hex color value of any point on the spectrum read from afni.spectrum
afni.color_at_value(colorval, val)
colorval |
the list output of afni.spectrum |
val |
the value for which a color (hex value) position on the spectrum is desired |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.