Learn R Programming

DeSciDe (version 1.0.2)

plot_clustering: Plot STRING Interactions

Description

Plot STRING interactions degree vs. clustering.

Usage

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

Value

Invisibly returns the ggplot object.

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.

Examples

Run this code
# 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)

Run the code above in your browser using DataLab