component.cluster: Create clusters based on the components of a graph

View source: R/graph-clustering.R

component.clusterR Documentation

Create clusters based on the components of a graph

Description

Edges are filtered away using a distance threshold to break up the completely connected graph such that only similar edges remain.

Usage

component.cluster(obj, dist.thresh = 0, setID = 0, time.var = NA)

Arguments

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)

Value

data.frame, known cases annotated with cluster ID and growth

Examples

component.cluster.set <- component.cluster(graph.ex, dist.thresh = 0.06)

component.cluster.set[which.max(Size),]

PoonLab/clustuneR documentation built on Jan. 29, 2024, 2:40 a.m.