[R] Appearance of Forest Plot

Joshua Wiley jwiley.psych at gmail.com
Mon Dec 6 22:57:15 CET 2010


Can you give a reproducible example of what you did?  My intuition is
that you could do it using par(), but I am not sure what package
metabin() is from (certainly none of the ones that load by default),
and I have even less idea how you created a forest plot (there are
many ways in R).  If you make up a little dataset (or use one of the
built in ones) and then show your code using that example, we can
replicate what you did and provide help.

I would also say that for faceting or otherwise breaking up your data
but having on graph, I find either the lattice or ggplot2 packages
easier to work with than base graphics.



> and provide commented, minimal, self-contained, *reproducible code*.

On Mon, Dec 6, 2010 at 1:09 PM, steph306 <stephthurston at hotmail.com> wrote:
> Hi All,
> I have conducted a meta analysis using the metabin function. I want to plot
> 5 subgroups on the same forest plot. I have managed to do this using the
> byvar argument but when i plot the forest plot in R graphics I am unable to
> view the very top and very bottom of the image. It is as though the plot is
> too long. Is there a way in which I can ask R to show the entire plot within
> the boundaries of the window?
> Many Thanks.
> --
> View this message in context: http://r.789695.n4.nabble.com/Appearance-of-Forest-Plot-tp3075326p3075326.html
> Sent from the R help mailing list archive at Nabble.com.
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

Joshua Wiley
Ph.D. Student, Health Psychology
University of California, Los Angeles

More information about the R-help mailing list