plot_network {goat}R Documentation

plot geneset distance matrix as a network

Description

plot geneset distance matrix as a network

Usage

plot_network(
  clusters,
  src,
  show_clusters = TRUE,
  show_text = FALSE,
  topn_edges = 5,
  clr_default = "#29b6f6",
  node_color_palette = goat::gg_color_hue
)

Arguments

clusters

result from cluster_genesets

src

source property (e.g. "GO_CC")

show_clusters

boolean value

show_text

boolean value

topn_edges

topN edges to retain per geneset (typically 5~8)

clr_default

default color for the network, used only when show_clusters is set to FALSE

node_color_palette

function with 1 parameter, N, that returns N colors (default is goat function gg_color_hue)

Value

a ggplot2 object


[Package goat version 1.0 Index]