forest_plot | R Documentation |
Perform MR of multiple exposures and multiple outcomes. This plots the results.
forest_plot(
mr_res,
exponentiate = FALSE,
single_snp_method = "Wald ratio",
multi_snp_method = "Inverse variance weighted",
group_single_categories = TRUE,
by_category = TRUE,
in_columns = FALSE,
threshold = NULL,
xlab = "",
xlim = NULL,
trans = "identity",
ao_slc = TRUE,
priority = "Cardiometabolic"
)
mr_res |
Results from |
exponentiate |
Convert effects to OR? Default is |
single_snp_method |
Which of the single SNP methosd to use when only 1 SNP was used to estimate the causal effect? The default is |
multi_snp_method |
Which of the multi-SNP methods to use when there was more than 1 SNPs used to estimate the causal effect? The default is |
group_single_categories |
If there are categories with only one outcome, group them together into an "Other" group. The default is |
by_category |
Separate the results into sections by category? The default is |
in_columns |
Separate the exposures into different columns. The default is |
threshold |
p-value threshold to use for colouring points by significance level. If |
xlab |
x-axis label. If |
xlim |
limit x-axis range. Provide vector of length 2, with lower and upper bounds. The default is |
trans |
Transformation to apply to x-axis. e.g. |
ao_slc |
retrieve sample size and subcategory from |
priority |
Name of category to prioritise at the top of the forest plot. The default is |
grid plot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.