This bug has been fixed.
Kevin
On Tue, Jun 28, 2011 at 6:11 AM, Niels Janssen wrote:
> Dear list,
>
> I have a problem with the "corrgram" function. It does not seem to "color"
> large negative correlations, while the same correlation, if positive,
> provides no problems. Is this a bug?
>
>
yes it is.
and a correlation of 0 isn't exactly white (#FF) either.
have a look at the panel.pie function.
the crucial part is
ncol <- 14
pal <- col.corrgram(ncol)
col.ind <- round(ncol * (corr + 1)/2)
so an correlation near -1 maps to an index 0, which isn't a proper index
in R.
Dear list,
I have a problem with the "corrgram" function. It does not seem to
"color" large negative correlations, while the same correlation, if
positive, provides no problems. Is this a bug?
require(corrgram)
a = seq(1,100)
b = -jitter(seq(1,100), 80)
3 matches
Mail list logo