Description Usage Arguments Value Author(s) Examples
View source: R/plotPrettyGraph.R
PlotPrettyGraph given inputs from the makeGraph function. adapted from http://is-r.tumblr.com/.
1 2 3 4 5 6 7 8 9 10 | plotPrettyGraph(
adjacencyMatrix,
functionToPlot,
pngfn = tempfile(fileext = ".png"),
scaleText = 0.5,
vertexSize = NA,
figScale = 11,
layoutmode = "eigen",
hueval = 0
)
|
adjacencyMatrix |
igraph adjacencyMatrix |
functionToPlot |
igraph node-level graph value e.g. degree, page.rank, etc |
pngfn |
filename for output png or to screen if NA |
scaleText |
relative size of text to vertices |
vertexSize |
cex size of vertices |
figScale |
the figure will be of square size 2^figScale in pixels |
layoutmode |
see gplot.layout in sna package |
hueval |
controls the hue in hsv |
no output
Avants BB, Christopher DeSante and David Sparks
1 2 3 4 5 6 7 | data("bold_correlation_matrix",package="ANTsR")
dmat<-data.matrix(bold_correlation_matrix)
if ( usePkg("igraph") ) {
gg<-makeGraph( dmat, 0.1 )
rownames(gg$adjacencyMatrix)<-colnames(bold_correlation_matrix)
plotPrettyGraph( gg$adjacencyMatrix, gg$degree , figScale=12 , scaleText=5 )
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.