[R-meta] ODP: ODP: Create labels for funnel plot points in metafor
Barbara Ostafińska-Molik
b@o@t@||n@k@-mo||k @end|ng |rom uj@edu@p|
Thu Aug 25 11:25:41 CEST 2022
Dear Wolfgang,
thank you very much. All your tips are very helpful. I obtained the desired effect.
Best regards,
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: Viechtbauer, Wolfgang (NP) <wolfgang.viechtbauer using maastrichtuniversity.nl>
Wys�ane: czwartek, 25 sierpnia 2022 10:18
Do: Barbara Ostafi�ska-Molik <b.ostafinska-molik using uj.edu.pl>; Michael Dewey <lists using dewey.myzen.co.uk>; r-sig-meta-analysis using r-project.org <r-sig-meta-analysis using r-project.org>
Temat: RE: [R-meta] ODP: Create labels for funnel plot points in metafor
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<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
[[alternative HTML version deleted]]
More information about the R-sig-meta-analysis
mailing list