plot_clustering: Plot STRING Interactions

View source: R/stringdb_functions.R

plot_clusteringR Documentation

Plot STRING Interactions

Description

Plot STRING interactions degree vs. clustering.

Usage

plot_clustering(string_results, file_directory = NULL, export = FALSE)

Arguments

string_results

Data frame with STRING metrics.

file_directory

Directory for saving the output plot. Defaults to NULL.

export

Logical indicating whether to export the plot. Defaults to FALSE.

Value

Invisibly returns the ggplot object.

Examples

# Example data frame
string_results <- data.frame(Degree = c(10, 5), Clustering_Coefficient_Percent = c(20, 10))
plot_clustering(string_results, file_directory = tempdir(), export = FALSE)

DeSciDe documentation built on Sept. 1, 2025, 1:08 a.m.