Skip to content

[R-meta] Issue with adding labels to funnel plot in metafor

3 messages · Dylan Johnson, Wolfgang Viechtbauer

#
Rma.mv model:
m.overall <- rma.mv(HEDGE_G, HEDGE_VAR, random = list(~ 1 | EFFECT_ID, ~ 1 | COHORT_ID), intercept=TRUE, data=dataset, method = "REML", slab=paste(dataset$EFFECT_ID))

Funnel plot:
funnel(m.overall,xlab = "Hedges' g", label="out")

I am receiving the following list of warning messages:
1: In plot.window(...) : "label" is not a graphical parameter
2: In plot.xy(xy, type, ...) : "label" is not a graphical parameter
3: In axis(side = side, at = at, labels = labels, ...) :
  "label" is not a graphical parameter
4: In axis(side = side, at = at, labels = labels, ...) :
  "label" is not a graphical parameter
5: In box(...) : "label" is not a graphical parameter
6: In title(...) : "label" is not a graphical parameter
7: In rect(par.usr[1], par.usr[3], par.usr[2], par.usr[4],  ... :
  "label" is not a graphical parameter
8: In axis(side = 2, at = seq(from = ylim[1], to = ylim[2],  ... :
  "label" is not a graphical parameter
9: In int_abline(a = a, b = b, h = h, v = v, untf = untf,  ... :
  "label" is not a graphical parameter
10: In polygon(c(ci.left, ci.right[ci.res:1]), c(yi.vals,  ... :
  "label" is not a graphical parameter
11: In plot.xy(xy.coords(x, y), type = type, ...) :
  "label" is not a graphical parameter
12: In plot.xy(xy.coords(x, y), type = type, ...) :
  "label" is not a graphical parameter
13: In segments(refline, ylim[1], refline, ylim[2], ...) :
  "label" is not a graphical parameter
14: In plot.xy(xy.coords(x, y), type = type, ...) :
  "label" is not a graphical parameter
15: In axis(side = 1, at = at, labels = at.lab, ...) :
  "label" is not a graphical parameter

Any suggestions for how to proceed?


Dylan Johnson, MSc

MA Student, School and Clinical Child Psychology
Department of Applied Psychology and Human Development

University of Toronto
252 Bloor Street West

Toronto, ON M5S 1V6
#
Dear Dylan,

Install the 'devel' version:

https://wviechtb.github.io/metafor/#installation

Best,
Wolfgang
#
Thanks Wolfgang!



Dylan Johnson, MSc

MA Student, School and Clinical Child Psychology
Department of Applied Psychology and Human Development

University of Toronto
252 Bloor Street West

Toronto, ON M5S 1V6



From: Viechtbauer, Wolfgang (SP)<mailto:wolfgang.viechtbauer at maastrichtuniversity.nl>
Sent: December 15, 2020 5:18 PM
To: Dylan Johnson<mailto:dylanr.johnson at mail.utoronto.ca>; r-sig-meta-analysis at r-project.org<mailto:r-sig-meta-analysis at r-project.org>
Subject: RE: Issue with adding labels to funnel plot in metafor



EXTERNAL EMAIL:

Dear Dylan,

Install the 'devel' version:

https://wviechtb.github.io/metafor/#installation

Best,
Wolfgang