[R-meta] ODP: Create labels for funnel plot points in metafor

Viechtbauer, Wolfgang (NP) wo||g@ng@v|echtb@uer @end|ng |rom m@@@tr|chtun|ver@|ty@n|
Thu Aug 25 10:18:39 CEST 2022


Dear Barbara,

Use the 'slab' argument when either using escalc() or when fitting the model (e.g., with rma()) to set the study labels to whatever variable you like. See the documentation for examples:

https://wviechtb.github.io/metafor/reference/funnel.html

Best,
Wolfgang

>-----Original Message-----
>From: R-sig-meta-analysis [mailto:r-sig-meta-analysis-bounces using r-project.org] On
>Behalf Of Barbara Ostafinska-Molik
>Sent: Thursday, 25 August, 2022 8:16
>To: Michael Dewey; r-sig-meta-analysis using r-project.org
>Subject: [R-meta] ODP: Create labels for funnel plot points in metafor
>
>Dear Michael,
>
>Thank you for your answer. This is clear.
>However, how to change the labels from the default ones to ones that will
>represent the numbers stored in a specific variable in the data.frame?
>
>All the best
>Barbara
>
>Pozdrawiam,
>
>Barbara Ostafińska-Molik (Ph.D)
>
>Jagiellonian University | Institute of Education|
>
>Batorego 12 | 31-135 Kraków
>
>https://pedagogika.uj.edu.pl<https://pedagogika.uj.edu.pl/en_GB/start-en>
>
>https://pedagogika.uj.edu.pl/dr-barbara-ostafinska-molik
>
>________________________________
>Od: Michael Dewey <lists using dewey.myzen.co.uk>
>Wysłane: środa, 17 sierpnia 2022 14:33
>Do: Barbara Ostafińska-Molik <b.ostafinska-molik using uj.edu.pl>; r-sig-meta-
>analysis using r-project.org <r-sig-meta-analysis using r-project.org>
>Temat: Re: [R-meta] Create labels for funnel plot points in metafor
>
>Dear Barbara
>
>I think you must have missed this section in ?funnel
>
>"With the label argument, one can control whether points in the plot
>will be labeled. If label="all" (or label=TRUE), all points in the plot
>will be labeled. If label="out", points falling outside of the pseudo
>confidence region will be labeled. Finally, one can also set this
>argument to a numeric value (between 1 and ) to specify how many of the
>most extreme points should be labeled (e.g., with label=1 only the most
>extreme point would be labeled, while with label=3, the most extreme,
>and the second and third most extreme points would be labeled). With the
>offset argument, one can adjust the distance between the labels and the
>corresponding points."
>
>Michael
>
>On 17/08/2022 02:00, Barbara Ostafińska-Molik wrote:
>> Hi,
>> I am conducting  a three-level analysis in a metaphor package. I have
>encountered a problem of my funnel plot. How might I add labels to the funnel
>plot? I want the
>> effect names to correspond to the numbering of one of the variables of my
>database.
>> Unfortunately, despite various attempts, I haven't managing to achieve the
>desired effect.  I cannot find any specific provisions for putting labels into
>the funnel plots.
>> I would appreciate for  help.
>>
>> Best Regards,
>> Barbara Ostafinska-Molik


More information about the R-sig-meta-analysis mailing list