create_network_plot: Create network visualization of GSEA results

View source: R/visualize_gsea.R

create_network_plotR Documentation

Create network visualization of GSEA results

Description

Create network visualization of GSEA results

Usage

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"
)

Arguments

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"

Value

A ggplot2 object


ggpicrust2 documentation built on April 13, 2025, 9:08 a.m.