Skip to contents

This visualization computes GeneRatio and displays enriched GO terms using a colored dot plot.

Usage

plot_GO_dot2(
  GO_df,
  topn = 10,
  label_format = 30,
  group_by = c("-log10(p.adjust)", "GeneRatio", "RichFactor", "Count"),
  x_axis = c("gene_ratio", "RichFactor")
)

Arguments

GO_df

A GO enrichment result data frame.

topn

Number of GO terms.

label_format

Width for wrapped labels.

group_by

Metric used to choose topN terms. One of "-log10(p.adjust)", "GeneRatio", "RichFactor", "Count". Default is "-log10(p.adjust)".

x_axis

X-axis metric for dotplot. One of "gene_ratio" or "RichFactor". Default is "gene_ratio".

Value

A ggplot object.