I am trying to create a forest plot in R using the forest()
function from the metafor
package. I refer to the documentation on R's website for all of the arguments that I can add to this function.
Currently this is my code:
forest(dat.back$yi, ci.lb=dat.back$ci.lb, ci.ub=dat.back$ci.ub, psize=1, studlab=labels)
I have defined labels previously (basically just a list of the study names I am included in the forest plot).
According to the documentation for this function, studlab
is a valid argument. However I get the following error message when I add it to the function:
"studlab" is not a graphical parameter.
This is not the only argument that produces an error message for. It does it for most other arguments I add.
How do I address this error?