[R] Help for funnel plot

De Simone de@@|mone@be||nd@87 @end|ng |rom gm@||@com
Sun May 15 14:27:58 CEST 2022


Hi Michael
Thank you so much for help
Apologies if my question wasn't clear. I'm looking to change the line type
(solid vs interrupted) not the color
Attached is an example for plot using solid for reference and interrupted
for confidence. The argument lty do both


On Sun, May 15, 2022 at 12:11 PM Michael Dewey <lists using dewey.myzen.co.uk>
wrote:

> Dear Belinda
>
> You need to specify lty as a vector to get different colours for the
> reference line and the limits of the pseudoe-confidence region. Does
> that solve your problem?
>
> Michael
>
> On 15/05/2022 01:37, De Simone wrote:
> > Hi,
> > Excuse me for this silly question
> > how do I get a colour gradient like the one attached. Colours are a bit
> > limited
> > Any specific code for the reference line and pseudo confidence lines. I
> use
> > "lty", but this do both
> >
> > Here is my argument
> >
> > dat <- escalc("MD", m1i=Mean_TAP, sd1i= SD_TAP, n1i= N_TAP,
> > m2i=Mean_caudal, sd2i= SD_caudal, n2i= N_caudal, slab=Study, data=
> > Duration_of_analgesia)
> >
> >
> >
> > res <- rma(yi, vi, data=dat, measure="MD", method="DL")
> >
> >
> > funnel(res, main="Duration of analegsia", back = 12, xlab="Mean
> difference
> > (hours)", cex = 1.2,  lwd = 2, lty = "solid", mgp = c(2, 1, 0),
> font.main =
> > 1, font.lab = 2, font.axis = 2)
> >
> > Thank you
> > ______________________________________________
> > R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
> >
>
> --
> Michael
> http://www.dewey.myzen.co.uk/home.html
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Funnel.pdf
Type: application/pdf
Size: 57649 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20220515/23e69c11/attachment.pdf>


More information about the R-help mailing list