How can I plot metafors' estimation for each factor level nicely using ggplot?

by user8460166   Last Updated January 19, 2018 06:26 AM

I am learning meta-analysis in metafor and would like to plot estimated learning gain nicely.

From my previous question (How can I plot fitted models with observations when dealing with the ANOVA type of research design in R? : thanks a lot to @Axeman!), I learned how to plot lm()'s results nicely.

warp.lm <- lm(breaks ~ wool : tension -1, data = warpbreaks)
warp.emm <- emmeans(warp.lm, ~ tension | wool)
 aes(wool, emmean, col = tension, ymin = lower.CL, ymax= upper.CL))+
 geom_pointrange(position = position_dodge(0.2), size = 1)

Now I would like to know how to do the same when using the metafor package. But, I found out that I cannot use emmeans() to rma().

vi =0
warp.rma <- rma(breaks, vi, mods =~ wool : tension -1, data = warpbreaks)
summary (warp.rma)

I would really appreciate your help!

Related Questions

scale_x_discrete labels disappeared in ggplot in R

Updated February 26, 2017 21:26 PM