Re: [R] Forestplot, grid graphics Viewplot grid.arange

2022-10-14 Thread Michael Dewey
There are several other CRAN packages which provide forest plots (see CRAN Task View for details) and they do not all use grip graphics which I think the forestplot package does. It might be worth swapping to one of them. Michael On 14/10/2022 04:34, Jim Lemon wrote: Hi Mary, I didn't see an

Re: [R] Forestplot, grid graphics Viewplot grid.arange

2022-10-13 Thread Jim Lemon
Hi Mary, I didn't see any answers to your post, but doing something like this is quite easy in base graphics. If you are still stuck, I may be able to suggest something. Jim On Mon, Oct 10, 2022 at 6:05 PM Putt, Mary wrote: > > > I have created several plots using the forestplot package and the

Re: [R] Forestplot question

2012-05-02 Thread Thomas Lumley
It works for me with your data: > dat<-read.table("/tmp/foo.txt",header=TRUE) > metaplot(a$coef,a$se_coef) It has boxes of size zero for the point estimates, but that's because you give the standard error as zero for the second estimate, which implies all the other boxes should be infinitely smal

Re: [R] ForestPlot or similar

2010-11-02 Thread Abhijit Dasgupta
You need to use a print statement print(forestplot()) Lattice and ggplot2 need to be explicitly printed to get output into jpeg. I believe Matt's function only provides the graphics object and not the printed version. Abhijit On 11/2/2010 4:32 PM, Mestat wrote: > Thanks Matt, > I am having

Re: [R] ForestPlot or similar

2010-11-02 Thread Mestat
Thanks Matt, I am having a problem now to use this function. The function separately works fine. But the problem is that I am working with a simulation, so i placed the CREDPLOT function in my program and added the following commands according my data: #MY DATA, ESTIMATES, LOWER AND UPPER INTERVA

Re: [R] ForestPlot or similar

2010-10-30 Thread Matt Shotwell
Here is a small function for forest plots in R, with an example: http://biostatmatt.com/wiki/r-credplot -Matt On Sat, 2010-10-30 at 11:40 -0400, Mestat wrote: > Here is one example: > I have three vectors (mean,lower interval, upper interval) > mean<-c(2,4,6,8) > l<-c(1,2,3,4) > u<-c(4,8,12,16)

Re: [R] ForestPlot or similar

2010-10-30 Thread Mestat
Here is one example: I have three vectors (mean,lower interval, upper interval) mean<-c(2,4,6,8) l<-c(1,2,3,4) u<-c(4,8,12,16) How would I plot that if I want to use the FORESTPLOT function. I dont need to use the TABLETEXT option. I am working in something like this: tabletext<-c(NA,NA,NA,NA,NA)

Re: [R] forestplot function in rmeta package

2009-06-08 Thread Michael Dewey
At 08:38 08/06/2009, carol white wrote: Hi, It is known that the area of square plotted by forestplot is proportional to the studies' weights. But since there is not weight parameter in forestplot function, how does this function proportion the area of each square based on the related study's

Re: [R] Forestplot () box size question

2009-03-22 Thread Gerard Smits
Yes, my R is a few versions old. I did not realize that the package version was dependent on the R version. Thanks. Gerard PS was able to apply the code suggested by David W. to the 2.14 version and got it to work. At 12:32 AM 3/22/2009, Thomas Lumley wrote: >On Sat, 21 Mar 2009, Gerard Smit

Re: [R] Forestplot () box size question

2009-03-22 Thread Thomas Lumley
On Sat, 21 Mar 2009, Gerard Smits wrote: I have tried several sites (2 in Ca and also Australia) and find only version 2.14. Which site did you pull 2.15 from? I have checked half a dozen sites in various countries, and they all have 2.15 (even in the Southern Hemisphere -- it's not that upd

Re: [R] Forestplot () box size question

2009-03-21 Thread David Winsemius
I use the CMU site. I think it is US PA #1 or some such. I suppose the fact that I am using a Mac could affect that but I am guessing not. I also found a copy of the 2.14 docs and boxsize was a parameter in that version as well. -- David Winsemius On Mar 21, 2009, at 2:24 PM, Gerar

Re: [R] Forestplot () box size question

2009-03-21 Thread Gerard Smits
I have tried several sites (2 in Ca and also Australia) and find only version 2.14. Which site did you pull 2.15 from? Thanks At 11:10 AM 3/21/2009, David Winsemius wrote: >"Latest version" is a tad non-specific. The help page for (my) package >rmeta, version 2.15 (download and compiled today)

Re: [R] Forestplot () box size question

2009-03-21 Thread Gerard Smits
Hi David, I did a general package update, but it must not have been quite as complete as I had hoped. I will make sure I download 2.15 and go from there. Thanks for you help. Gerard At 11:10 AM 3/21/2009, David Winsemius wrote: >"Latest version" is a tad non-specific. The help page for (my) p

Re: [R] Forestplot () box size question

2009-03-21 Thread David Winsemius
"Latest version" is a tad non-specific. The help page for (my) package rmeta, version 2.15 (download and compiled today) says: Usage forestplot(labeltext, mean, lower, upper, align = NULL, is.summary = FALSE, clip = c(-Inf, Inf), xlab = "", zero = 0, graphwidth = unit(2, "inches"), col = m

Re: [R] Forestplot () box size question

2009-03-21 Thread Gerard Smits
Hi David, I just checked to make sure I had the latest version. I see no boxsize option in the forestplot function parameters or any other place in the code. function (labeltext, mean, lower, upper, align = NULL, is.summary = FALSE, clip = c(-Inf, Inf), xlab = "", zero = 0, graphwidth =

Re: [R] Forestplot () box size question

2009-03-21 Thread David Winsemius
If you look at the original code (or at the help page), you should see a boxsize parameter. If you set that to 1 in the call you get boxes all the same size. Presumably that could be modified to suit your needs. You seem to have removed that section of the code. The two lines with that p

Re: [R] forestplot

2009-02-11 Thread Marino, Mark
...@mannkindcorp.com -Original Message- From: Thomas Lumley [mailto:tlum...@u.washington.edu] Sent: Wednesday, February 11, 2009 5:40 AM To: Marino, Mark Cc: r-help@r-project.org Subject: Re: [R] forestplot On Tue, 10 Feb 2009, Marino, Mark wrote: > Dear R users, > > Is there any way to co

Re: [R] forestplot

2009-02-11 Thread Thomas Lumley
On Tue, 10 Feb 2009, Marino, Mark wrote: Dear R users, Is there any way to control the size of the box around the mean when creating a Forest plot using the forestplot function? No. If you want to customize further, you are probably better off starting with less general code. The basic stru

Re: [R] forestplot

2009-02-10 Thread Uwe Ligges
Marino, Mark wrote: Dear R users, Is there any way to control the size of the box around the mean when creating a Forest plot using the forestplot function? H, > forestplot Error: object 'forestplot' not found > PLEASE do read the posting guide http://www.R-project.org/posting-guide

Re: [R] Forestplot

2007-12-21 Thread francogrex
Sorry here's the good code: forestplot=function(mean,std,conf,threshold){ z=-qnorm((1-conf)/2) CI.H <- mean+z*std # Calculate upper CI CI.L <- mean-z*std # Calculate lower CI plot(mean,1:length(mean),xlim=c(min(CI.L),max(CI.H)),pch=15,cex=1, ylab="",xlab="mean & CIs",main="Forest plot") arrows(

Re: [R] Forestplot

2007-12-21 Thread francogrex
Answering my own query here's a solution (if any reader was curious): forestplot=function(mean,std,conf,threshold){ z=-qnorm((1-conf)/2) CI.H <- mean+z*sqrt(std) # Calculate upper CI CI.L <- mean-z*sqrt(std) # Calculate lower CI plot(mean,1:length(mean),xlim=c(min(CI.L),max(CI.H)),pch=15,cex=1,