plotIMGraph: plotIMGraph

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/images_oo.R

Description

This function takes a graph object returned from IMaGES (takes the form of a named list containing .graph and .params) and plots it. Using plotAll or plotMarkovs is recommended unless you only want to see one specific graph.

Usage

1
plotIMGraph(graph.object, title="Global")

Arguments

graph.object

Graph object returned as part of IMaGES run

title

Title of resulting plot of IMGraph

Value

plot

Prints plot to the screen

Author(s)

Noah Frazier-Logue (n.frazier.logue@nyu.edu)

Stephen Jose Hanson (jose@rubic.rutgers.edu)

References

J.D. Ramsey, S.J. Hanson, et al. (2010) Six problems for causal inference from fMRI. NeuroImage 49, 1545-1558.

See Also

plotMarkovs, plotAll, IMaGES

Examples

1
2
3
4
5
6
7
8
## Load predefined data
data(IMData)

#run IMaGES
im.fits <- IMaGES(matrices=IMData, penalty=3, num.markovs=5)

#plot individual graph
plotIMGraph(im.fits$.single.graph[[1]], title="Global")

IMaGES documentation built on July 1, 2020, 10:16 p.m.