plot_enrich_gsea: plot_enrich_gsea

View source: R/plot_enrich_gsea.R

plot_enrich_gseaR Documentation

plot_enrich_gsea

Description

dotplot for enrich result from enrich_GSEA

Usage

plot_enrich_gsea(
  enrichment,
  show_category = 10,
  plot_type = "dot",
  filter_by = "-log10(p.adjust)",
  color_by = "NES",
  color_range = c("blue2", "red2"),
  size_by = "Count",
  size_range = c(2, 6),
  text_len_limit = 40,
  facet_by = NULL,
  facet_scales = "free_y"
)

Arguments

enrichment

data.frame, from GSEA enrichment, result can be merged from multi enrichment, grouping info can be viewed by facet

show_category

integer, show enriched category number

plot_type

character, one of dot, bar

filter_by

character, filter show_category by which column, one of -log10(p.adjust), NES, Count

color_by

character, map point color, one of -log10(p.adjust), NES, Count

color_range

two element character vector, mapping color range, from low to high, for gsea plot, the value of NSE = 0 will be white color

size_by

character, map point size, currently, only Count avaible for gseaResult

size_range

two element numeric vector, mapping point size, from low to high only works if plot_type is dot

text_len_limit

integer, wrap y-axis text length

facet_by

character, facet plot by which column in enrichment, default avaible value is direction, user use add aditional column in enrichment

facet_scales

character, facet scales, one of free_y, free_x, "free, fixed, only works if facet_by is not NULL

Value

ggplot2 object


soulong/bioTools documentation built on Aug. 23, 2023, 1:35 a.m.