dat <- data.frame(
Study = c("Bazargani et al. 2015", "Nandhra et al. 2015", "Rai 2015", "Romano et al. 2011"),
events = c(25, 109, 24, 9),
n = c(454, 757, 380, 100)
)
forest_prev(
dat = dat,
title = "Prevalence Forest Plot",
xlim = c(-25, 80),
xpos_study = -12,
xpos_events = -5,
xpos_prev = 40,
xpos_weight = 52,
contour_breaks = c(0,5,10,25,35),
contour_colors = c("gray90","gray70","gray50","gray30"),
legend_title = "Prevalence (%)"
)
Run the code above in your browser using DataLab