| defaultInfoPanel {tractor.base} | R Documentation |
The viewImages function provides a simple interactive viewer for
MriImage objects. 3D and 4D images may be used.
defaultInfoPanel(point, data, imageNames) timeSeriesPanel(point, data, imageNames) polarPlotPanel(point, data, imageNames, directions, bValues = NULL) viewImages(images, colourScales = NULL, point = NULL, interactive = TRUE, crosshairs = TRUE, orientationLabels = TRUE, fixedWindow = TRUE, indexNames = NULL, infoPanel = defaultInfoPanel, ...)
point |
For |
data |
A list giving the data value(s) at the current crosshair
location in each image displayed. Typically numeric, but in principle may
be of any mode, and will be character mode when |
imageNames |
A character vector giving a name for each image displayed. |
directions |
A matrix of 3D acquisition direction vectors, one per row. |
bValues |
A vector of b-values, if the image is diffusion-weighted. |
images |
An |
colourScales |
A list of colour scales to use for each image, which
will be recycled to the length of |
interactive |
A single logical value. If |
crosshairs |
A single logical value. If |
orientationLabels |
A single logical value. If |
fixedWindow |
A single logical value. If |
indexNames |
A list whose elements are either |
infoPanel |
A function with at least three arguments, which must plot
something to fill the bottom-right panel of the viewer after each change
of crosshair location. The three mandatory arguments correspond to the
current location in the image, the image values at that location, and the
names of each image. The |
... |
Additional arguments to |
These functions are called for their side effects.
The defaultInfoPanel and timeSeriesPanel functions are
not intended to be called directly. They are simple examples of valid
values for the infoPanel argument to viewImages.
Jon Clayden
Please cite the following reference when using TractoR in your work:
J.D. Clayden, S. Muñoz Maniega, A.J. Storkey, M.D. King, M.E. Bastin & C.A. Clark (2011). TractoR: Magnetic resonance imaging and tractography with R. Journal of Statistical Software 44(8):1-18. http://www.jstatsoft.org/v44/i08/.