Skip to content
Prev 239908 / 398500 Next

ForestPlot or similar

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