plot_enrich_ora: plot_enrich_ora

View source: R/plot_enrich_ora.R

plot_enrich_oraR Documentation

plot_enrich_ora

Description

dotplot for enrich result from enrich_ORA

Usage

plot_enrich_ora(
  enrichment,
  show_category = 10,
  plot_type = "dot",
  axis_x = "GeneRatio",
  order_by = "-log10(p.adjust)",
  color_by = "-log10(p.adjust)",
  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 ORA 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

axis_x

character, plot axis x by which column, one of GeneRatio, -log10(p.adjust), enrichFactor, Count

order_by

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

color_by

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

color_range

two element character vector, mapping color range, from low to high

size_by

character, map point size, one of GeneRatio, -log10(p.adjust), enrichFactor, Count only works if plot_type is dot

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

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.