funnel_radial: funnel_radial

Description Usage Arguments Value Author(s) References Examples

View source: R/funnel_radial.R

Description

A function for producing generalized radial IVW and MR-Egger funnel plots either individually or simultaneously. The function also allows for lines indicating the magnitude for the MR Egger transformation for each variant, though it should be noted that this distance is a function of the weight attributed to the variant, and is therefore not indicative of outliers.

Usage

1
funnel_radial(r_object, show_transform)

Arguments

r_object

An object of class "IVW" or "egger". For visualising both estimates simultaneously, both objects should be included as a vector c(A,B), where A and B denote the "IVW" and "egger" objects respectively.

show_transform

Indicates whether to produce a plot including lines showing the magnitude of the MR Egger transformation for each variant (TRUE), or a scatterplot showing only the variants and corresponding estimates (FALSE).

Value

A ggplot object containing a radial funnel plot of either the IVW, MR-Egger, or both estimates simultaneously.

Author(s)

Wes Spiller; Jack Bowden.

References

Bowden, J., et al., Improving the visualization, interpretation and analysis of two-sample summary data Mendelian randomization via the Radial plot and Radial regression. International Journal of Epidemiology, 2018. 47(4): p. 1264-1278.

Examples

1
funnel_radial(r_object,TRUE) 

WSpiller/MRPracticals documentation built on April 25, 2020, 10:52 a.m.