Re: [R] problem with corrgram function

2011-07-02 Thread Kevin Wright
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? > >

Re: [R] problem with corrgram function

2011-06-28 Thread Eik Vettorazzi
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.

[R] problem with corrgram function

2011-06-28 Thread Niels Janssen
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)