
Last chance! 50% off unlimited learning
Sale ends in
The viewImages
function provides a simple interactive viewer for
MriImage
objects. 3D and 4D images may be used.
augmentedInfoPanel(indexNames = NULL)polarPlotPanel(directions, bValues = NULL)
viewImages(images, colourScales = NULL, point = NULL, interactive = TRUE,
crosshairs = TRUE, orientationLabels = TRUE,
infoPanel = RNifti::defaultInfoPanel, ...)
These functions are called for their side effects.
A list whose elements are either NULL
or a named
character vector giving the names associated with each index in the image.
A matrix of 3D acquisition direction vectors, one per row.
A vector of b-values, if the image is diffusion-weighted.
An MriImage
object, or list of MriImage
objects.
A list of colour scales to use for each image, which
will be recycled to the length of images
. See
getColourScale
for details. The default is to use greyscale.
A length-3 integer vector giving the initial location of the crosshairs, in voxels.
A single logical value. If TRUE
, the plot is
interactive.
A single logical value. If TRUE
, the crosshairs are
displayed.
A single logical value. If TRUE
, orientation
labels are displayed.
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 defaultInfoPanel
and
timeSeriesPanel
functions from package RNifti
are valid
examples.
Additional arguments to infoPanel
.
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. tools:::Rd_expr_doi("10.18637/jss.v044.i08").
getColourScale