R/14-data_visualization_plot_similarity_network.R
plot_similarity_network.Rd
This function plots a similarity network based on the given parameters. It can operate on different levels and databases, and provides options for text annotations.
An object of class "functional_module" containing the necessary data for plotting.
A character string indicating the level of analysis, either "module" or "functional_module".
A character string indicating the database to be used, either "go", "kegg", or "reactome".
A numeric value indicating the degree cutoff for filtering nodes in the network.
Optional, a character or numeric vector of module IDs to include in the plot.
Logical, whether to include text annotations on the plot.
Logical, whether to include text annotations for all nodes.
A ggplot object representing the similarity network.
if (FALSE) {
# Assume `obj` is a prepared object containing relevant data
plot_similarity_network(obj, level = "module", database = "go")
plot_similarity_network(obj, level = "functional_module", degree_cutoff = 2)
}