plot_ontpval: Make a pvalue plot from a df of IDs, scores, and p-values.

View source: R/ontology_plots.R

plot_ontpvalR Documentation

Make a pvalue plot from a df of IDs, scores, and p-values.

Description

This function seeks to make generating pretty pvalue plots as shown by clusterprofiler easier.

Usage

plot_ontpval(
  df,
  ontology = "MF",
  fontsize = 14,
  plot_title = NULL,
  text_location = "right",
  text_color = "black",
  x_column = "score",
  numerator = NULL,
  denominator = NULL
)

Arguments

df

Some data from topgo/goseq/clusterprofiler.

ontology

Ontology to plot (MF,BP,CC).

fontsize

Fiddling with the font size may make some plots more readable.

plot_title

Set an explicit plot title.

text_location

Choose where to put the text describing the number of genes in the category.

text_color

Choose the text color, I have a fun function for this now...

x_column

Use this column to arrange the x-axis.

numerator

Column used for printing a ratio of genes/category.

denominator

Column used for printing a ratio of genes/category.

Value

Ggplot2 plot of pvalues vs. ontology.

See Also

[ggplot2]


elsayed-lab/hpgltools documentation built on May 9, 2024, 5:02 a.m.