powered by
Will use rgl to render a spatial graph
renderNetwork<-function( network, locations, scaling=c(0,0), lwd=2, radius=3, edgecolors=0, nodecolors='blue', nodetype='s' )
NxN array or matrix of network connectivity values.
Nx3 array or matrix of node locations
min and max values to use for coloring of edge values
width of edge lines
pre-defined colors for graph edges
radius of nodes
type of glyph for nodes
0 -- Success 1 -- Failure
# NOT RUN { renderNetwork(network, locations) renderNetwork(network, locations, lwd=3, edgecolors=heat.colors(100) ) # }
Run the code above in your browser using DataLab