plotExwas {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

    plotExwas(
      object,
      ...,
      subtitles,
      color,
      exp.order,
      labels,
      show.effective = TRUE
    )

### Arguments

`object` | An `ExWAS` object which p-values will be plotted.
`...` | Other objects of class `ExWAS`.
`subtitles` | (optional) Characters used as "substitle" when more than one `ExWAS` is given.
`color` | (optional) Character vector of HTML colors, labeled with family's names. Used to colore the exposures.
`exp.order` | (optional) Character vector of exposures used to order and subset the plot.
`labels` | (optional) Character vector with the labels for each exposure. It must be labeled vector.
`show.effective` | (default `TRUE`) If set to `FALSE`, line showing effective test threshold is not shown.

### 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")
    plotExwas(w1)

[Package rexposome version 1.16.0 Index]