if (FALSE) {
## "g.hubs" contains 2 groups; apply same subset to both
plot_brainGraph_multi(g.hubs, filename='Figure01_hubs.png',
subgraph='N > 0', vertex.color='color.lobe', vertex.size=15,
show.legend=TRUE, vertex.label.cex=1.5)
## Single group, different subgraphs for both plots
## "g" is a "brainGraphList" object
gg <- g[rep(1, 3), drop=FALSE]
plot_brainGraph_multi(gg, filename='group1_5-6-7core.png',
vertex.color='color.lobe', edge.color='color.lobe', vertex.label=NA,
subgraph=as.list(paste('coreness >', 5:7)),
main=as.list(paste('k-core', 5:7)))
## Apply different subset for groups 1 & 3; no subset for group 2
plot_brainGraph_multi(g, groups=1:3, vertex.label=NA,
subgraph=list('degree > 5', NULL, 'degree > 4'))
}
Run the code above in your browser using DataLab