title: Using meta, metaprop, and forest to create forest plot graphics in R
body: <p>I am using the metaprop command in R to do a meta-analysis of proportions. Some sample code is below.</p>
  
  <pre><code>library(meta)
  m &lt;- metaprop(4:1, c(10, 20, 30, 40))
  forest(m)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/TODeT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TODeT.png" alt="Forest plot"></a></p>
  
  <p>I have several questions.</p>
  
  <ol>
  <li>How do I force all of the text (proportion column, 95% CI column, fixed and random weights columns) to appear on the LEFT side of the plot rather than on the right?</li>
  <li>I have another column of text identifiers for each study that I would like to add on the left as well. How can I stick this in as its own column?</li>
  <li>I really need to plot these as percentages, not proportions. Is there a way to make this change?</li>
  <li>Last, I need the bottom axis to go from 0 to 100% and have a label.</li>
  </ol>
  
  <p><strong>Edit</strong></p>
  
  <p>Ok, I have figured out how to do almost everything. The only thing I need help with is, I have another vector of labels that I would like to add to the left side of the plot. It seems like the leftlabs or leftcols command should do this but I can't get it to work. I would like to also plot another column on the left entitled "Details" that, for each of the four studies, has a little sentence about them.</p>
  
  <pre><code>forest(m, xlim = c(0,100), pscale = 100, weight = "random", leftcols = c("studlab", "event", "n", "effect", "ci", "w.random"), rightcols = F, leftlabs = c("Study", "Number", "Total", "Prevalence (%)", "95% CI", "Weight"), xlab = "Prevalence (%)", addspace = TRUE, digits = 1, squaresize = 0.5, text.I2 = "I2", text.tau2 = "tau2")
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/gSQzo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gSQzo.png" alt="Second Forest Plot"></a></p>