는 내가 data.frame에게이라인 길이는
> s1g2
centre Estimate Var n
factor(groupchange)2 1 0.6821912 1.486330e+00 217
factor(groupchange)21 2 0.3535025 1.622455e+00 165
factor(groupchange)22 3 -15.4053858 3.284365e+06 152
factor(groupchange)23 4 -0.2659903 1.837585e+00 137
factor(groupchange)24 5 0.4702335 2.198379e+00 201
factor(groupchange)25 6 1.1657077 9.546860e-01 159
>
나는
metafor
라이브러리
이의 숲 명령을 사용하여 플롯 싶습니다
내가
res <- rma(Estimate, Var, data=s1g2, method="ML")
sav <- blup(res)
par(family="mono", mar=c(5,4,1,2))
forest(res, refline=res$b, addcred=TRUE, xlim=c(-7,8),alim=c(-3,3), slab=1:6, psize=.8,
ilab=paste0("(n = ", formatC(s1g2[["n"]], width=3, big.mark=","), ")"),
ilab.xpos=-3.5, ilab.pos=2, rows=6:1+.15)
text(-7, 15, "Trial (total n)", pos=4)
text(8, 15, "Log Odds Ratio [95% CI]", pos=2)
을 시도 것입니다
작동하지만 센터 = 3의 화살표가 왼쪽에서 너무 길다. 어떻게 줄일 수 있습니까? alim
명령은 오른쪽에서만 작동하는 것 같습니다.
또한 플롯에 다른 라이브러리를 사용하는 솔루션이 허용됩니다. 나는 다음과 같이하고 싶다. http://mcfromnz.files.wordpress.com/2012/11/forest_plot_2.png