Open MaVdb opened 4 years ago
Hi Cynthia,
I did not solve the problem. I've plotted the forest plot in R, without any package, by entering the output of the association tests manually.
Best, Marijne
Op zo 14 jun. 2020 om 11:16 schreef cynthia1227 notifications@github.com:
I have the same problem, did you find any solutions? I am considering using "forestplot" package to do this, but I am not sure if it works.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MRCIEU/TwoSampleMR/issues/167#issuecomment-643740402, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMCQ5PO6LOUIKC726HHP62DRWSIQVANCNFSM4LCJL7BA .
Thanks for your reply! I will try it.
I would like to create a forest plot of the MR results of 1 exposure on 1 outcome, showing the OR and CI for different tests (ivw, Egger, weighted median...).
However, I am unable to create a forest plot:
res <- mr(dat) forest_plot(res)
==> Error in
$<-.data.frame
(*tmp*
, "lab", value = 1L) : replacement has 1 row, data has 0res is a dataframe containing the following columns: id.exposure, id.outcome, outcome, exposure, method, nsnp, b, se, pval