Learn R Programming

IMaGES (version 0.1.1)

plotIMGraph: plotIMGraph

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

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

%% ...

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

Run this code
# NOT RUN {
## 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")
# }

Run the code above in your browser using DataLab