visualiseVox: Visualise by-voxel statistics for each voxel, e.g winning SNP...

Description Usage Arguments Value

View source: R/RImaGen-functions.r

Description

Visualise by-voxel statistics for each voxel, e.g winning SNP p-value per voxel.

Usage

1
2
3
4
visualiseVox(result, mask, ref.img, pv.range = NULL, log.cutoff = 0,
  plot = TRUE, title = "winning SNP", titleSize = 2,
  beforeTitle = "-log10 p-values by\n", afterTitle = "", outPath = NULL,
  matPath = NULL, coordsOnly = FALSE, crossCoords = NULL)

Arguments

result

Vector of target statistics.

mask

Image mask.

ref.img

Reference image.

pv.range

P-value range for scale.

log.cutoff

Negative log p-value cutoff value.

plot

logical. Set to TRUE for automated plotting of the results.

title

Plot title.

titleSize

Title font size.

beforeTitle

Text to print before the title.

afterTitle

Text to print after the title.

outPath

Output path. If NULL (default) no plot files will be saved.

matPath

Path to convolution matrix for coregistration of results to the reference image. Set to NULL if in the same space.

coordsOnly

logical. Set to TRUE to return coordinates of the best voxel only.

crossCoords

Coordinate vector for the croshairs. If NULL, it is set to coordinates of the best voxel after linear registration to reference image. 1-indexed.

Value

A list containing the results visualisation image and a vector of coordinates for the max. value voxel.


JakubBartoszewicz/RImaGen documentation built on May 8, 2017, 11:21 p.m.