Re: [R] spacing of color key in filled.contour

2011-01-20 Thread claudia tebaldi
Hi again thank you to those who replied. I actually figured out a simple way (which does entail transforming the data, oh well...) and I thought I throw it out there just in case someone needs to solve a similar problem. Apologies if it is in fact obvious. Once the right levels for the contouring

Re: [R] spacing of color key in filled.contour

2011-01-20 Thread Clint Bowman
I've gotten good results using the sine function to map colors. For example, when plotting x, map the range(x) to (-pi/2,pi/2) which the sine will transform to (-1,1), then add 1 and multiply by half the desired number of colors. Now the integer values will pick the colors and give a pleasing

Re: [R] spacing of color key in filled.contour

2011-01-20 Thread Jim Lemon
On 01/20/2011 09:19 AM, claudia tebaldi wrote: Hi all I'm plotting colored contour maps using filled.contour. My levels are very unevenly spaced, with, say, high resolution in the small numbers but ranges that can be an order of magnitude or two larger in absolute value compared to where the ac

[R] spacing of color key in filled.contour

2011-01-19 Thread claudia tebaldi
Hi all I'm plotting colored contour maps using filled.contour. My levels are very unevenly spaced, with, say, high resolution in the small numbers but ranges that can be an order of magnitude or two larger in absolute value compared to where the action takes place. Aside from transforming the dat