Skip to content
Prev 4977 / 5636 Next

[R-meta] question on scatter plot of estimates (Fisher's Z) against the standard error

Dear Gabriel,

The funnel() function accepts vectors for 'col' and 'pch'. So you could do:

ri <- c(0.5, 0.6, 0.7, 0.8, 0.9)
ni <- c(100,110,150,200,250)
dat <-escalc(measure = "ZCOR", ri = ri, ni = ni)
funnel_all <- rma.mv(yi,  vi,  data=dat)

grp <- c(1,2,1,1,2)
cols <- c("red","blue")
pchs <- c(19,15)
funnel(funnel_all, back=NA, level=0, refline=1, yaxis="seinv", col=cols[grp], pch=pchs[grp])
grid()
abline(v=1, col="blue", lwd=2)

Best,
Wolfgang
Message-ID: <AS8PR08MB91931AC08FB8F77C2C69A9648BA9A@AS8PR08MB9193.eurprd08.prod.outlook.com>
In-Reply-To: <CAAKwTDEATgPYHrvcvMpVeXv+xuw4pNrtWQ_JzVEtNXtq_eyM5g@mail.gmail.com>