View source: R/stringdb_functions.R
plot_clustering | R Documentation |
Plot STRING interactions degree vs. clustering.
plot_clustering(string_results, file_directory = NULL, export = FALSE)
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. |
Invisibly returns the ggplot object.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.