[R] ForestPlot or similar

Matt Shotwell shotwelm at musc.edu
Sat Oct 30 23:31:55 CEST 2010


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)
> 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)
> mean<-c(NA,2,4,6,8)
> l<-c(NA,1,2,3,4)
> u<-c(NA,4,8,12,16)
> forestplot(tabletext,mean,l,u,zero=0)
> But I am having a problem with the length of the dimension...
> Thanks in advance,
> Marcio
> 

-- 
Matthew S. Shotwell
Graduate Student 
Division of Biostatistics and Epidemiology
Medical University of South Carolina



More information about the R-help mailing list