Message-ID: <C05EA705-22E5-4BBC-B6BC-2BF78C922B0B@comcast.net>
Date: 2013-01-05T18:30:46Z
From: David Winsemius
Subject: package metafor: error when setting 'col' and 'at' for a forest plot
In-Reply-To: <00c601cdeb03$7a4601d0$6ed20570$@com>
On Jan 4, 2013, at 9:13 PM, Brian Z Ring wrote:
> I am using metafor to create forest plots. This code gives me the
> expected
> plot (setting x axis tick marks):
>
> forest(forest$OR, ci.lb=forest$Low, ci.ub=forest$High, at=log(c(.
> 05, .25,
> 1, 10)), slab=forest$SNP, atransf=exp)
>
> As does this (setting colors):
>
> forest(forest$OR, ci.lb=forest$Low, ci.ub=forest$High, col=c(1,2,3),
> slab=forest$SNP, atransf=exp)
>
> But if I try to set both 'at' and 'col':
>
> forest(forest$OR, ci.lb=forest$Low, ci.ub=forest$High, col=c(1,2,3),
> at=log(c(.05, .25, 1, 10)), slab=forest$SNP, atransf=exp)
>
> I receive this error:
> Error in polygon(x = c(alim[2], alim[2] - (1.4/100) * cex * (xlim[2]
> - :
> formal argument "col" matched by multiple actual arguments
>
> Any help greatly appreciated.
Can you reproduce this using the examples in the package help pages?
--
David Winsemius, MD
Alameda, CA, USA