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
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
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
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
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
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)
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)
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
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
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
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
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)
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
"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
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 =
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
...@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
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
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
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(
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,
21 matches
Mail list logo