plot_goseq_pval: Make a pvalue plot from goseq data.

View source: R/ontology_plots.R

plot_goseq_pvalR Documentation

Make a pvalue plot from goseq data.

Description

With minor changes, it is possible to push the goseq results into a clusterProfiler-ish pvalue plot. This handles those changes and returns the ggplot results.

Usage

plot_goseq_pval(
  goterms,
  wrapped_width = 30,
  cutoff = 0.1,
  x_column = "score",
  order_by = "score",
  decreasing = FALSE,
  n = 30,
  mincat = 5,
  level = NULL,
  ...
)

Arguments

goterms

Some data from goseq!

wrapped_width

Number of characters before wrapping to help legibility.

cutoff

Pvalue cutoff for the plot.

x_column

Choose the data column to put on the x-axis of the plot.

order_by

Choose the data column for ordering the bars.

decreasing

When ordering the bars, go up or down?

n

How many groups to include?

mincat

Minimum size of the category for inclusion.

level

Levels of the ontology tree to use.

...

Arguments passed from simple_goseq()

Value

Plots!

See Also

[ggplot2]


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