Description Usage Arguments Value
Plot volcano plot of many MR analyses
1 | volcano_plot(res, what = "exposure")
|
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 |
ggplot of volcano plots
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.