How to make forest plot like this using risk ratio and confidence intervals with the comparison labels? I don't want R to automatically group the comparison, I just want to plot the forest plot with the labels at the left hand side. Thank you.
I use this code:
d=result
df=data.frame(d)
cochrane_from_rmeta <-
structure(list(
mean = df$RiskRatio,
lower = df$LowerLimit,
upper = df$UpperLimit),
.Names = c("RiskRatio", "lower", "upper"),
row.names = c(NA, -14L),
class = "data.frame")
tabletext<-cbind(
c(df$Outcomes),
c(df$Comparison),
c(df$...4),
c(df$RiskRatio))
forestplot(tabletext,
cochrane_from_rmeta,new_page = TRUE,
is.summary=c(TRUE,TRUE,rep(FALSE,8),TRUE),
clip=c(0.1,2.5),
xlog=TRUE,
col=fpColors(box="royalblue",line="darkblue", summary="royalblue"))
but it shows error

forestplot()specifygraph.pos = 2- jared_mamrot