View source: R/graph-clustering.R
component.cluster | R Documentation |
Edges are filtered away using a distance threshold to break up the completely connected graph such that only similar edges remain.
component.cluster(obj, dist.thresh = 0, setID = 0, time.var = NA)
obj: |
S3 object of class clusData. Contains vertex, edge and growth resolution information. |
dist.thresh: |
double, the maximum distance defining which edges are filtered. A higher distance threshold implies a larger average cluster size |
setID: |
A numeric identifier for this cluster set. |
time.var: |
character, column name for discrete time variable to fit a model of edge density decay with time (optional) |
data.frame, known cases annotated with cluster ID and growth
component.cluster.set <- component.cluster(graph.ex, dist.thresh = 0.06)
component.cluster.set[which.max(Size),]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.