volcano_plot: Plot volcano plot of many MR analyses

Description Usage Arguments Value

View source: R/plots.r

Description

Plot volcano plot of many MR analyses

Usage

1
volcano_plot(res, what = "exposure")

Arguments

res

Dataframe similar to output from mr() function, requiring id.exposure, id.outcome. Ideally only provide one MR estimate for each exposure-outcome hypothesis. Also provide a sig column of TRUE/FALSE to determine if that association is to be labelled

what

Whether to plot many exposures against few outcomes (default: exposure) or few exposures against many outcomes (outcome). If e.g. 'exposure' and there are multiple outcomes then will facet by outcome

Value

ggplot of volcano plots


explodecomputer/tryx documentation built on July 26, 2020, 2:45 p.m.