<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:"Palatino Linotype"}
@font-face
        {font-family:"Segoe UI"}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
.x_MsoChpDefault
        {}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-CA" link="blue" vlink="#954F72" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal"><img width="390" height="308" id="x_Picture_x0020_3" src="cid:image002.png@01D6D928.3583FD10" style="width:4.0625in; height:3.2083in"></p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I would like the Hedge’s g scale that runs along the x-axis to stretch further to the left and fill in some of that blank space</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thanks!</p>
<p class="x_MsoNormal"> </p>
<p style="margin:0cm; background:white"><b><span style="font-size:10.0pt; font-family:"Arial",sans-serif; color:#666666; border:none windowtext 1.0pt; padding:0cm">Dylan Johnson, MSc</span></b><span style="font-size:12.0pt; font-family:"Segoe UI",sans-serif; color:#323130"></span></p>
<p style="margin:0cm; background:white; font-variant-ligatures:normal; font-variant-caps:normal; orphans:2; widows:2; text-decoration-style:initial; text-decoration-color:initial; text-align:start; word-spacing:0px">
<span style="font-size:10.0pt; font-family:"Arial",sans-serif; color:#666666; border:none windowtext 1.0pt; padding:0cm">MA Student, School and Clinical Child Psychology </span><span style="font-size:10.0pt; font-family:"Palatino Linotype",serif; color:#757B80; border:none windowtext 1.0pt; padding:0cm"><br>
</span><span style="font-size:10.0pt; font-family:"Arial",sans-serif; color:#666666; border:none windowtext 1.0pt; padding:0cm">Department of Applied Psychology and Human Development </span><span style="font-size:12.0pt; color:black"></span></p>
<p style="margin:0cm; background:white; font-variant-ligatures:normal; font-variant-caps:normal; orphans:2; widows:2; text-decoration-style:initial; text-decoration-color:initial; text-align:start; word-spacing:0px">
<span style="font-size:10.0pt; font-family:"Arial",sans-serif; color:#666666; border:none windowtext 1.0pt; padding:0cm">University of Toronto</span><span style="font-size:10.0pt; font-family:"Palatino Linotype",serif; color:#757B80; border:none windowtext 1.0pt; padding:0cm"><br>
</span><span style="font-size:10.0pt; font-family:"Arial",sans-serif; color:#666666; border:none windowtext 1.0pt; padding:0cm">252 Bloor Street West</span><span style="font-size:12.0pt; color:black"></span></p>
<p style="margin:0cm; background:white; font-variant-ligatures:normal; font-variant-caps:normal; orphans:2; widows:2; text-decoration-style:initial; text-decoration-color:initial; text-align:start; word-spacing:0px">
<span style="font-size:10.0pt; font-family:"Arial",sans-serif; color:#666666; border:none windowtext 1.0pt; padding:0cm">Toronto, ON M5S 1V6</span><span style="font-size:12.0pt; color:black"></span></p>
<p class="x_MsoNormal"> </p>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal" style="border:none; padding:0cm"><b>From: </b><a href="mailto:lists@dewey.myzen.co.uk">Michael Dewey</a><br>
<b>Sent: </b>December 23, 2020 7:04 AM<br>
<b>To: </b><a href="mailto:dylanr.johnson@mail.utoronto.ca">Dylan Johnson</a>; <a href="mailto:wolfgang.viechtbauer@maastrichtuniversity.nl">
Viechtbauer, Wolfgang (SP)</a><br>
<b>Cc: </b><a href="mailto:r-sig-meta-analysis@r-project.org">r-sig-meta-analysis@r-project.org</a><br>
<b>Subject: </b>Re: [R-meta] Putting pooled effects from different multilevel meta analyses into the same forest plot</p>
</div>
<p class="x_MsoNormal"> </p>
</div>
</div>
<font size="2"><span style="font-size:11pt;">
<div class="PlainText">EXTERNAL EMAIL:<br>
<br>
Dear Dylan<br>
<br>
Looking at the documentation for forest.default I see no parameter<br>
plotwidth so it is being passed to any functions called within that use<br>
the ... argument. What exactly are you trying to achieve here?<br>
<br>
Michael<br>
<br>
On 23/12/2020 00:54, Dylan Johnson wrote:<br>
> Hello,<br>
><br>
><br>
><br>
> Is there any reason that the plotwidth function isn�t working with the following forest plot:<br>
><br>
><br>
><br>
> dev.new(width=10, height=1)<br>
><br>
> forest(c(coef(m.overall), coef(m.overall2), coef(m.overall3)),<br>
><br>
>         c(vcov(m.overall), vcov(m.overall2), round(vcov(m.overall3), digits = 3)),<br>
><br>
>         slab=c("Threat (k=39)", "Deprivation (k=45)", "Composite (k=125)"),<br>
><br>
>         header=c("Inhibitory Control", "Hedge's g [95% CI]"), xlab="Hedge's g",<br>
><br>
>         top=2, refline=NA, xlim=c(-3.2,1), at=(c(0,-0.25,-0.50,-0.75)), psize=1, efac=0, plotwidth=unit(6, "cm") )<br>
><br>
> addpoly(c(coef(m.overall), coef(m.overall2), coef(m.overall3)),<br>
><br>
>          c(vcov(m.overall), vcov(m.overall2), vcov(m.overall3)),<br>
><br>
>          rows=3:1, efac=2, annotate=FALSE, col = 2, border = 2)<br>
><br>
><br>
><br>
> It doesn�t seem to change the width of the forest plot no matter what values I type in.<br>
><br>
><br>
><br>
> Thank you<br>
><br>
><br>
><br>
> Dylan Johnson, MSc<br>
><br>
> MA Student, School and Clinical Child Psychology<br>
> Department of Applied Psychology and Human Development<br>
><br>
> University of Toronto<br>
> 252 Bloor Street West<br>
><br>
> Toronto, ON M5S 1V6<br>
><br>
><br>
><br>
> From: Viechtbauer, Wolfgang (SP)<mailto:wolfgang.viechtbauer@maastrichtuniversity.nl><br>
> Sent: December 21, 2020 10:55 AM<br>
> To: Michael Dewey<<a href="mailto:lists@dewey.myzen.co.uk">mailto:lists@dewey.myzen.co.uk</a>>; Dylan Johnson<<a href="mailto:dylanr.johnson@mail.utoronto.ca">mailto:dylanr.johnson@mail.utoronto.ca</a>><br>
> Cc: r-sig-meta-analysis@r-project.org<mailto:r-sig-meta-analysis@r-project.org><br>
> Subject: RE: [R-meta] Putting pooled effects from different multilevel meta analyses into the same forest plot<br>
><br>
><br>
><br>
> EXTERNAL EMAIL:<br>
><br>
> As Michael suggested. Or, if you install the 'devel' version of metafor, then 'col' will also take a vector of colors in addpoly().<br>
><br>
> Best,<br>
> Wolfgang<br>
><br>
>> -----Original Message-----<br>
>> From: Michael Dewey [<a href="mailto:lists@dewey.myzen.co.uk">mailto:lists@dewey.myzen.co.uk</a>]<br>
>> Sent: Monday, 21 December, 2020 10:54<br>
>> To: Dylan Johnson; Viechtbauer, Wolfgang (SP)<br>
>> Cc: r-sig-meta-analysis@r-project.org<br>
>> Subject: Re: [R-meta] Putting pooled effects from different multilevel meta<br>
>> analyses into the same forest plot<br>
>><br>
>> Dear Dylan<br>
>><br>
>> Perhaps plot them one at a time?<br>
>><br>
>> Michael<br>
>><br>
>> On 20/12/2020 22:46, Dylan Johnson wrote:<br>
>>> Apologies for not CC-ing the mailing list.<br>
>>><br>
>>> As a last question, is there a way for me to make each of these polygons a<br>
>> different colour as opposed to all the same:<br>
>>><br>
>>> forest(c(coef(m.overall), coef(m.overall2), coef(m.overall3)),<br>
>>>          c(vcov(m.overall), vcov(m.overall2), round(vcov(m.overall3),<br>
>> digits = 3)),<br>
>>>          slab=c("Threat (k=23)", "Deprivation (k=14)", "Composite (k=77)"),<br>
>>>          header=c("Cognitive Flexibility", "Hedge's g [95% CI]"),<br>
>> xlab="Hedge's g",<br>
>>>          top=2, refline=NA, xlim=c(-3,1), at=log(c(.2, .5, 1)), psize=1,<br>
>> efac=0)<br>
>>><br>
>>> addpoly(c(coef(m.overall), coef(m.overall2), coef(m.overall3)),<br>
>>>           c(vcov(m.overall), vcov(m.overall2), vcov(m.overall3)),<br>
>>>           rows=3:1, efac=2, annotate=FALSE, col = 2)<br>
>>><br>
>>> Dylan Johnson, MSc<br>
>>><br>
>>> MA Student, School and Clinical Child Psychology<br>
>>> Department of Applied Psychology and Human Development<br>
>>><br>
>>> University of Toronto<br>
>>> 252 Bloor Street West<br>
>>><br>
>>> Toronto, ON M5S 1V6<br>
>>><br>
>>> From: Viechtbauer, Wolfgang<br>
>> (SP)<mailto:wolfgang.viechtbauer@maastrichtuniversity.nl><br>
>>> Sent: December 20, 2020 3:26 PM<br>
>>> To: Dylan Johnson<<a href="mailto:dylanr.johnson@mail.utoronto.ca">mailto:dylanr.johnson@mail.utoronto.ca</a>><br>
>>> Cc: R meta<<a href="mailto:r-sig-meta-analysis@r-project.org">mailto:r-sig-meta-analysis@r-project.org</a>><br>
>>> Subject: RE: Putting pooled effects from different multilevel meta<br>
>> analyses into the same forest plot<br>
>>><br>
>>> Please always cc the mailing list when replying.<br>
>>><br>
>>> You could use addpoly() to draw the polygons on top. Continuing with the<br>
>> example:<br>
>>><br>
>>> addpoly(c(coef(res.r), coef(res.n), coef(res)),<br>
>>>           c(vcov(res.r), vcov(res.n), vcov(res)),<br>
>>>           rows=3:1, efac=2, annotate=FALSE)<br>
>>><br>
>>> Best,<br>
>>> Wolfgang<br>
>>><br>
>>>> -----Original Message-----<br>
>>>> From: Dylan Johnson [<a href="mailto:dylanr.johnson@mail.utoronto.ca">mailto:dylanr.johnson@mail.utoronto.ca</a>]<br>
>>>> Sent: Sunday, 20 December, 2020 20:38<br>
>>>> To: Viechtbauer, Wolfgang (SP)<br>
>>>> Subject: RE: Putting pooled effects from different multilevel meta<br>
>> analyses<br>
>>>> into the same forest plot<br>
>>>><br>
>>>> Thanks for the script, I managed to get it working!<br>
>>>><br>
>>>> Do you know if there is any way to get them to show up with the diamond<br>
>>>> shape plotted instead of the squares? They are technically pooled effects<br>
>> so<br>
>>>> I think it would hammer that home better.<br>
>>>><br>
>>>> Thanks!<br>
>>>><br>
>>>> Dylan<br>
>>>><br>
>>>> Dylan Johnson, MSc<br>
>>>> MA Student, School and Clinical Child Psychology<br>
>>>> Department of Applied Psychology and Human Development<br>
>>>> University of Toronto<br>
>>>> 252 Bloor Street West<br>
>>>> Toronto, ON M5S 1V6<br>
>>>><br>
>>>> From: Viechtbauer, Wolfgang (SP)<br>
>>>> Sent: December 20, 2020 6:59 AM<br>
>>>> To: Dylan Johnson; r-sig-meta-analysis@r-project.org<br>
>>>> Subject: RE: Putting pooled effects from different multilevel meta<br>
>> analyses<br>
>>>> into the same forest plot<br>
>>>><br>
>>>> Hi Dylan,<br>
>>>><br>
>>>> Here is an example using rma(), but the same principle applies to models<br>
>>>> fitted with rma.mv().<br>
>>>><br>
>>>> dat <- dat.bcg<br>
>>>> dat <- escalc(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat)<br>
>>>> res   <- rma(yi, vi, data=dat)<br>
>>>> res.r <- rma(yi, vi, data=dat, subset=alloc=="random")<br>
>>>> res.n <- rma(yi, vi, data=dat, subset=alloc!="random")<br>
>>>><br>
>>>> dev.new(width=10, height=6)<br>
>>>> forest(c(coef(res.r), coef(res.n), coef(res)),<br>
>>>>         c(vcov(res.r), vcov(res.n), vcov(res)),<br>
>>>>         slab=c("With Random Assignment", "Without Random Assignment", "All<br>
>>>> Studies"),<br>
>>>>         header=c("Subset", "Risk Ratio [95% CI]"), xlab="Risk Ratio (log<br>
>>>> scale)",<br>
>>>>         top=2, refline=NA, xlim=c(-3,1), atransf=exp, at=log(c(.2, .5,<br>
>> 1)),<br>
>>>> psize=1, efac=0)<br>
>>>><br>
>>>> Best,<br>
>>>> Wolfgang<br>
>>>><br>
>>>>> -----Original Message-----<br>
>>>>> From: R-sig-meta-analysis [<a href=""></a>mailto:r-sig-meta-analysis-bounces@r-<br>
>>>> project.org]<br>
>>>>> On Behalf Of Dylan Johnson<br>
>>>>> Sent: Sunday, 20 December, 2020 2:01<br>
>>>>> To: r-sig-meta-analysis@r-project.org<br>
>>>>> Subject: [R-meta] Putting pooled effects from different multilevel meta<br>
>>>>> analyses into the same forest plot<br>
>>>>><br>
>>>>> Hello,<br>
>>>>><br>
>>>>> I am currently using the rma.mv function to carry out my metas and would<br>
>>>>> like to display two pooled subgroups from one of them and an additional<br>
>>>>> pooled estimate from another.<br>
>>>>><br>
>>>>> Is there anyways to go about doing this?<br>
>>>>><br>
>>>>> Many thanks!<br>
>>>>><br>
>>>>> Dylan<br>
>>>>><br>
>>>>> Dylan Johnson, MSc<br>
>>>>><br>
>>>>> MA Student, School and Clinical Child Psychology<br>
>>>>> Department of Applied Psychology and Human Development<br>
>>>>><br>
>>>>> University of Toronto<br>
>>>>> 252 Bloor Street West<br>
>>>>><br>
>>>>> Toronto, ON M5S 1V6<br>
><br>
>       [[alternative HTML version deleted]]<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> R-sig-meta-analysis mailing list<br>
> R-sig-meta-analysis@r-project.org<br>
> <a href="https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis">https://stat.ethz.ch/mailman/listinfo/r-sig-meta-analysis</a><br>
><br>
<br>
--<br>
Michael<br>
<a href="http://www.dewey.myzen.co.uk/home.html">http://www.dewey.myzen.co.uk/home.html</a><br>
</div>
</span></font>
</body>
</html>