volcano_plot.Rd
Plot volcano plot of many MR analyses
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