[R] metaplot in rmeta: y-axis disappears

Roaman romanhornung at web.de
Wed Aug 12 15:10:45 CEST 2009


Thank you, the x-axis includes zero, but even, when I try to plot it not
including zero, the y-axis keeps
disappearing. One can't even add the axis afterwards!

Here is an example:

library(rmeta)

set.seed(123)

# simulated data:
############
theta <- 0.5
sds <- runif(50,0.8,8)
b <- rnorm(50,0,0.3)
e <- sapply(sds, function(x) rnorm(1,0,sds))
theta_i <- theta + b + e

# funnel plot:
#########
plot(1/(sds^2), theta_i)

# short break:
#########
Sys.sleep(3)

# metaplot:
########
metaplot(mn = theta_i, se = sds)

# plot funnel plot again:
################
plot(1/(sds^2), theta_i)

# ---> y-axis disappeared!

# try to add y-axis:
#############
axis(2, at=-4:7, labels=-4:7)

# ---> nothing happens.

-- 
View this message in context: http://www.nabble.com/metaplot-in-rmeta%3A-y-axis-disappears-tp24917401p24936130.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list