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

[R] Forestplot, grid graphics Viewplot grid.arange

2022-10-10 Thread Putt, Mary
I have created several plots using the forestplot package and the link shown here. Great package ! Next step is to combine two plots into a single graphic. The code provided on the link results in 'bleeding' of th

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

[R] Forestplot question

2012-05-02 Thread Ben Ganzfried
Hi, I'm trying to build a Forest Plot using the second and fourth columns in the table (test.csv) below. My code is the following: curated <- data.frame("test.csv") tmp <- curated$coef tmp1 <- curated$se_coef plt <- metaplot(tmp, tmp1, xlim = c(-.45, .45)) I keep getting the following error at th

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)

[R] ForestPlot or similar

2010-10-30 Thread Mestat
Hi listers, I am trying to plot some confidence intervals. The function FORESTPLOT, would work, but I need something more simple. I dont need to define the text labels. Is there another function that I can plot some confidence intervals. Thanks in advance, Marcio -- View this message in context:

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

[R] forestplot function in rmeta package

2009-06-08 Thread carol white
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 weight? Look forward to your reply, Caro

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

[R] Forestplot () box size question

2009-03-21 Thread Gerard Smits
Hi All, I have been able to modify the x-axis to start at zero by adding xlow and xhigh parameters; that was pretty simple. I have been unable to find the location of the code that would turn off the information weighting of the box size (I have smaller randomized trials getting less weight t

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

[R] forestplot

2009-02-10 Thread Marino, Mark
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? regards Mark Mark T. Marino, MD VP, Early Clinical Development Mannkind Corp. 61 S. Paramus Road Paramus, NJ 07652 201-983-5238 Office 203-512-4008

[R] forestplot and x axis scale

2008-12-08 Thread Pam Murnane
Hello R users, I would like to create several forestplots with the same X axis, so, if you were to look at the plots lined up all the X axes would be identical (and the different plots could be compared). Here is one version of code I've used: mytk10<-c(0.1, 0.5, 1, 2, 5, 10) pdf(file = "myfile.

[R] forestplot() with large number of confidence intervals

2008-02-14 Thread array chip
Hi I am using forestplot() in rmeta package on a dataset of 45 point estimates with corresponding confidence intervals. The resulting plot was just too large and plotted out of the graphic window that I can not see whole picture. Is there anyway to fix this problem? Thanks ___

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,

[R] Forestplot

2007-12-18 Thread francogrex
I know there is a function forestplot from rmeta package and also the plot.meta from the meta package and maybe others, but they are rather complicated with extra plot parameters that I do not need and also they process only objects created with other package functions. But I wonder if anyone has