fig.mmdt: Plot Results of Multi-Modal Density Test

Description Usage Arguments Value Examples

View source: R/fig.mmdt.R

Description

This function creates figures visualizing the results of the mmdt analysis.

Usage

1
2
fig.mmdt(mmdt.results, type = "significance", mc.adjust = "BH",
  coords = c(NA, NA))

Arguments

mmdt.results

an object resulting from the 'mmdt' command.

type

type of image to be produced. Can be "t-statistic" or "significance". Default is "significance".

mc.adjust

if type="significance", this states which adjustment method to use for visualization.

coords

a vector of length d [e.g., c(NA, NA, 3.25) for d=3] giving the coordinates at which the plane should be visualized. Only necessary for plotting results that include three or more dimensions. Entries should be "NA" for the two modalities to be plotted, and other entries should give the value along the other dimensions at which the results should be plotted.

Value

A raster image showing either the full t-statistic map or a map of regions at which significant differences were detected.

Examples

1
2
3
4
5
6
7
## Not run: 
mmdt.obj = get.mmdt.obj(masks = masks, modal1 = t1s, modal2 = flairs,
                        ids = ids, groups = groups)
results = mmdt(mmdt.obj)

fig.mmdt(results, type="significance")
## End(Not run)

jdwor/mmdt documentation built on April 7, 2021, 5:17 p.m.