Collapse vertices belonging to each cluster in a graph
getClusterGraph( graph, groups, method = "sum", plot = FALSE, node.scale = 50, edge.scale = 50, edge.alpha = 0.3, seed = 1, ... )
igraph graph object Graph to be collapsed
factor on vertices describing cluster assignment (can specify integer vertex ids, or character vertex names which will be matched)
string Method to be used, either "sum" or "paga" (default="sum")
boolean Whether to show collapsed graph plot (default=FALSE)
numeric Scaling to control value of 'vertex.size' in plot.igraph() (default=50)
numeric Scaling to control value of 'edge.width' in plot.igraph() (default=50)
numeric Scaling to control value of 'alpha.f' in adjustcolor() within plot.igraph() (default=0.3)
numeric Set seed via set.seed() for plotting (default=1)
arguments passed to collapseGraphSum()
collapsed graph
# NOT RUN { cluster.graph = getClusterGraph(conosGraph, igraph::V(conosGraph)) # } # NOT RUN { # }
Run the code above in your browser using DataLab