enrichBar: enrich bar plot

View source: R/Visualization_enrichBar.R

enrichBarR Documentation

enrich bar plot

Description

enrich bar plot

Usage

enrichBar(
  enrichResult,
  top = 10,
  group = "ONTOLOGY",
  space = 0.9,
  order_by = "pvalue",
  FDR = "qvalue",
  bar = "logP",
  bar_size = 2,
  point = "gr",
  point_shape = 21,
  point_size = 2.5,
  point_color = c("#de2d26", "#fc9272", "#fee0d2"),
  bar_color = rev(RColorBrewer::brewer.pal(5, "GnBu")[3:5]),
  group_color = RColorBrewer::brewer.pal(3, "Dark2"),
  group_names = c("Biological Process", "Cellular Component", "Molecular Function"),
  group_color_name = c("BP", "CC", "MF"),
  group_title = "ONTOLOGY",
  bar_title = "Qvalue",
  point_title = "GeneRatio",
  x_title = "-log10(pvalue)",
  y_title = "Description",
  plot_title = NULL,
  legend_text_size = 12,
  FDR_color = c("#de2d26", "#fc9272", "#fee0d2")
)

Arguments

enrichResult

a enrichResult

top

number of top categories to show

group

which column used to split group

space

space for text

order_by

order by which column, default is pvalue

FDR

pvalue or qvalue

bar

which column to plot bar, default is 'logP'

bar_size

size of bar

point

which column to plot point, default is 'gr'

point_shape

shape of point

point_size

size of point

point_color

color of point

bar_color

color of bar

group_color

color of group

group_names

label of group

group_color_name

color label of group

group_title

title label of group

bar_title

title of bar

point_title

title of point

x_title

title of x axis

y_title

title of y axis

plot_title

title of point

legend_text_size

size of legend text

FDR_color

color of FDR

Value

a ggplot

Examples

enrichBar(enrichResult)

xiayh17/RNAseqStat2 documentation built on May 27, 2023, 12:13 p.m.