plotEffect {rexposome} | R Documentation

## Function to draw a plot of the pvalues stored in an `ExWAS` object

### 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

    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

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

[Package rexposome version 1.16.0 Index]