plotGenePathway: Plot gene expression or enrichment scores

View source: R/plotGenePathway.R

plotGenePathwayR Documentation

Plot gene expression or enrichment scores

Description

This function creates a plot for visualizing gene expression between partitions, either as a static plot or interactive with plotly.

Usage

plotGenePathway(
  K2res,
  feature,
  node,
  type = c("eMatDS", "eMat", "gMat"),
  use_plotly = TRUE,
  subsample = TRUE
)

Arguments

K2res

A K2 class object.

node

Character. A specific node identifier in K2res object.

type

Character. One of 'eMatDS' (default), 'eMat', or 'gMat'.

use_plotly

Logical. Whether to create a static plot, FALSE, or interactive plot, TRUE (default).

subsample

Logical. Whether to downsample the output object in order to save memory. This minimal impact on plot visual. Default is TRUE.

features

Character. Either a gene or gene set identifier.

Value

Either a ggplot or ggplotly object.

References

\insertRef

reed_2020K2Taxonomer


montilab/K2Taxonomer documentation built on April 5, 2025, 3:58 a.m.