Learn R Programming

vows (version 0.4)

rlrtpanel: Interactive visualization of voxelwise RLRT results

Description

This function uses interactive graphics tools, provided by the rpanel package, to visualize the results of massively parallel RLRT results as produced by rlrt4d.

Usage

rlrtpanel(rlrtobj, array4d, predictor, disp = c("stat", "p", "fdr"), titl = "", xlab = "Age", ylab = "", slice = (dim(array4d)[3]%/%2), ylim.scatter = NULL, col.image = shape::femmecol(100), neglog10 = FALSE, threshold = NULL)

Arguments

rlrtobj
an RLRT object as produced by rlrt4d.
array4d
a 4-dimensional array containing the raw data that were smoothed at each point. The first 3 dimensions refer to x, y, and z coordinates and the last dimension corresponds to different images.
predictor
a vector or matrix of covariates.
disp
values from the RLRT object to be displayed: either RLRT statistics, p-values, or FDR values.
titl
title of the panel.
xlab,ylab
x- and y-axis labels.
slice
index of the default slice to be shown in the panel.
ylim.scatter
the y limits of the scatterplots.
col.image
a list of colors such as that generated by rainbow, heat.colors, topo.colors, terrain.colors or similar functions.
neglog10
logical; if TRUE, negative base 10 logarithm (of the quantity specified by disp) is displayed.
threshold
the upper limit of the values to be plotted. All larger values will be replaced by the threshold value.

Details

RLRT results are shown for a cross-section (slice), and a slider allows viewing of different slices. Clicking on a voxel produces a scatterplot of the data at that voxel.

References

Bowman, A., Crawford, E., Alexander, G., and Bowman, R. (2007). rpanel: Simple interactive controls for R functions using the tcltk package. Journal of Statistical Software, 17(9).

See Also

rlrt4d

Examples

Run this code
# Please see example for rlrt4d

Run the code above in your browser using DataLab