plotAssociation-methods: Function to draw de result of an association study

Description Usage Arguments Value See Also Examples

Description

This function draws two type of plots for the ResultSet from association functions

Usage

1
2
3
4
5
6
7
8
plotAssociation(object, rid = 1, coef = 2, contrast = 1,
  type = c("manhattan", "qq", "volcano"), tPV = NULL, tFC = NULL,
  show.effect = FALSE)

## S4 method for signature 'ResultSet'
plotAssociation(object, rid = 1, coef = 2,
  contrast = NULL, type = c("manhattan", "qq", "volcano"), tPV = NULL,
  tFC = NULL, show.effect = FALSE)

Arguments

object

An object of class ResultSet obtained from assoc_* functions.

rid

(default 1) Index or name of the test to be plotted.

coef

(default 2) Index of the coefficient to be extracted.

contrast

(default 1) When code corresponds to a multicategorical variable, contasr selects the comparison.

type

Can take "volcano", "qq", "manhattan" and "protein". "protein" lot is a type of Manhattan plot designed for protein association analysis.

tPV

(optional) Threshold for P.Value when type="volcano".

tFC

(optional) Threshold for Fold Change or Effect when type="volcano".

show.effect

(default FALSE) If set to TRUE, when type="volcano" the X-axis will show 2^logFC instead of logFC.

Value

A ggplot2 object

See Also

plotIntegration for plotting integration results. association to create a ResultSet to be passed to this function.

Examples

1
2
3
data("asr", package = "omicRexposome")
plotAssociation(asr, type = "qq")
plotAssociation(asr, type = "volcano")

omicRexposome documentation built on Jan. 24, 2021, 2:03 a.m.