Learn R Programming

ANTsR (version 1.0)

renderNetwork: 3D surface-based rendering of image ROI-based networks

Description

Will use rgl to render a spatial graph

Usage

renderNetwork<-function( network, locations, scaling=c(0,0), lwd=2, radius=3, edgecolors=0, nodecolors='blue', nodetype='s' )

Arguments

network

NxN array or matrix of network connectivity values.

locations

Nx3 array or matrix of node locations

scaling

min and max values to use for coloring of edge values

lwd

width of edge lines

edgecolors

pre-defined colors for graph edges

radius

radius of nodes

nodetype

type of glyph for nodes

Value

0 -- Success 1 -- Failure

Examples

Run this code
# NOT RUN {
renderNetwork(network, locations)
renderNetwork(network, locations, lwd=3, edgecolors=heat.colors(100) )
# }

Run the code above in your browser using DataLab