GWASForestPlots-class: S4 class to store instrument-level MR forest plots

GWASForestPlots-classR Documentation

S4 class to store instrument-level MR forest plots

Description

A GWASForestPlots object is returned by GWAS_forest(). It holds one ggplot object per outcome-exposure pair — each plot shows per-instrument (SNP-level) causal estimates alongside a pooled IVW estimate — together with the metadata needed to filter and export subsets.

Slots

plots

Named list of ggplot objects. Names follow the pattern "Outcome::Exposure".

outcomes

Character vector of outcome labels, parallel to plots.

exposures

Character vector of exposure labels, parallel to plots.

Methods

export_forest_plots(object, save_dir, file_type, width, height, dpi, outcome, exposure)

Saves plots to disk. Optionally filter by outcome, exposure, or both to export a subset.


autoMR documentation built on June 12, 2026, 9:07 a.m.