plotEffect-methods: Function to draw a plot of the pvalues stored in an 'ExWAS'...

Description Usage Arguments Value See Also Examples

Description

This function draws a sort of manhattan plots using the p-value of the association of the exposures with phenotypes of an ExWAS object.

Usage

1
plotEffect(x, y, select, labels, xlab, ylab)

Arguments

x

An ExWAS object which effect will be ploted.

y

(optional) Another ExWAS object. If provded its effects will be ploted in Y-axis.

select

(optional) Character with exposures to be shown.

labels

(optional) Character vector with the labels for each exposure. It must be labeled vector.

xlab

(optional) Label for X-axis.

ylab

(optional) Label for Y-axis.

Value

An object of class ggplot.

See Also

exwas as a constructor for ExWAS objects, extract to obtain a table with the result of the ExWAS

Examples

1
2
3
4
data(exposome)
w1 <- exwas(expo[1:5, ], asthma~1, family = "binomial")
w2 <- exwas(expo[1:5, ], asthma~sex+age, family = "binomial")
plotEffect(w1, w2)

rexposome documentation built on March 13, 2021, 2:01 a.m.