Re: [R] lattice centre a diverging colour scale

2010-09-23 Thread baptiste AuguiƩ
Great, I don't know how I missed that, thanks! baptiste On Sep 23, 2010, at 10:39 AM, Deepayan Sarkar wrote: > On Thu, Sep 23, 2010 at 12:33 PM, baptiste auguie > wrote: >> Dear list, >> >> I'm using lattice::levelplot to plot a coloured image of 3D data. The >> range of the z values goes from

Re: [R] lattice centre a diverging colour scale

2010-09-23 Thread Deepayan Sarkar
On Thu, Sep 23, 2010 at 12:33 PM, baptiste auguie wrote: > Dear list, > > I'm using lattice::levelplot to plot a coloured image of 3D data. The > range of the z values goes from negative to positive, but is not > exactly centred around 0. I would however like to map a diverging > colour scale with

[R] lattice centre a diverging colour scale

2010-09-23 Thread baptiste auguie
Dear list, I'm using lattice::levelplot to plot a coloured image of 3D data. The range of the z values goes from negative to positive, but is not exactly centred around 0. I would however like to map a diverging colour scale with white falling exactly at 0, and both extremes being symmetrical in t