Learn R Programming

richCluster (version 1.0.2)

cluster_network: Create a Network Graph for a Specific Cluster

Description

This function generates a network graph for a specific cluster based on the provided distance matrix. The opacity and length of the edges correspond to the given distance_metric (eg, kappa) score similarity between terms, which is based on shared gene content.

Usage

cluster_network(final_clusters, distance_matrix, cluster_number, merged_df)

Value

An interactive networkD3 network graph.

Arguments

final_clusters

A dataframe containing the final cluster data.

distance_matrix

A matrix representing the distances between terms.

cluster_number

An integer specifying the cluster number to visualize.

merged_df

A dataframe with all terms used to map term indices to names.