CDplotWrapper: CDplotWrapper

View source: R/plotting.R

CDplotWrapperR Documentation

CDplotWrapper

Description

A wrapper around CDplot to work directly with DEA results and a target sets as inputs.

Usage

CDplotWrapper(
  dea,
  sets,
  setName,
  k = 3,
  addN = FALSE,
  by = c("auto", "sites", "score", "best_stype", "type"),
  sameFreq = NULL,
  line.size = 1.2,
  point.size = 0.8,
  checkSynonyms = TRUE,
  pvals = FALSE,
  ...
)

Arguments

dea

A named numeric vector containing the signal for each feature, or a DEA results data.frame (such as produced by major DEA packages, i.e. edgeR, DESeq2 or limma).

sets

The target sets object.

setName

The name of the set to plot in 'sets'.

k

The number of groups to form. Only applicable if by = "sites" or "score".

addN

Logical; whether to add group sizes to their names

by

The variable by which to form the groups; either "sites", "score", "best_stype" or "type". If unspecified, will determine the best depending on the available annotation data.

sameFreq

Logical; whether to divide so as to obtained groups with similar frequencies (rather than groups of similar width)

line.size

Size of the line.

point.size

Size of the points.

pvals

Logical; whether to print the p-values of KS tests between sets

...

Any other argument passed to CDplot.

Value

A ggplot.


ETHZ-INS/enrichMiR documentation built on July 20, 2024, 12:03 a.m.