View source: R/visualize_gsea.R
create_network_plot | R Documentation |
Create network visualization of GSEA results
create_network_plot(
gsea_results,
similarity_measure = "jaccard",
similarity_cutoff = 0.3,
n_pathways = 20,
layout = "fruchterman",
node_color_by = "NES",
edge_width_by = "similarity"
)
gsea_results |
A data frame containing GSEA results from the pathway_gsea function |
similarity_measure |
A character string specifying the similarity measure: "jaccard", "overlap", or "correlation" |
similarity_cutoff |
A numeric value specifying the similarity threshold for filtering connections |
n_pathways |
An integer specifying the number of pathways to display |
layout |
A character string specifying the network layout algorithm: "fruchterman", "kamada", or "circle" |
node_color_by |
A character string specifying the node color mapping: "NES", "pvalue", or "p.adjust" |
edge_width_by |
A character string specifying the edge width mapping: "similarity" or "constant" |
A ggplot2 object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.