[R] Help for funnel plot

Bert Gunter bgunter@4567 @end|ng |rom gm@||@com
Mon May 16 01:11:49 CEST 2022


... and/or post on the r-sig-meta-analysis page,
https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis  not here.

Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Sun, May 15, 2022 at 4:05 PM Jim Lemon <drjimlemon using gmail.com> wrote:

> Hi,
> Looking at the help page for "funnel", I first thought that the
> "shade" argument would be the one. However, that seems to take a
> specific color. Perhaps the function computes the shading from that. I
> have never used the "funnel" function myself, so I don't have a good
> idea of how that left-to-right gradient is determined. Perhaps:
>
> wvb using metafor-project.org
>
> could tell you.
>
> Jim
>
> On Sun, May 15, 2022 at 10:24 PM De Simone
> <de.simone.belinda87 using gmail.com> wrote:
> >
> > Thank you Jim
> > I attached an example for color gradient
> > What would be the argument for one color gradient. I haven't used the
> plotrix before
> >
> > On Sun, May 15, 2022 at 10:56 AM Jim Lemon <drjimlemon using gmail.com> wrote:
> >>
> >> Hi,
> >> There are a number of functions that will transform numeric values
> >> into colors. One is color.scale in the plotrix package. This accepts a
> >> vector of numeric values and linearly transforms them into one or more
> >> ranges of colors. The resulting colors can then be passed to the
> >> appropriate arguments in your plotting function.
> >>
> >> Jim
> >>
> >> On Sun, May 15, 2022 at 3:48 PM De Simone <
> de.simone.belinda87 using gmail.com> 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.
>
> ______________________________________________
> 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.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list