Re: [R] Transparent color ramp problem

2012-01-24 Thread david99
I think you can do this in hexadecimal. To see this, compare the HEX output from rgb(1,0,0) and rgb(1,0,0,0.5): #FF #FF80 They differ only by the addition of the alpha digits hex 80 which are (almost) half way between 00 and FF. Making a non-transparent scale transparent is thus just a

[R] Transparent color ramp problem

2011-08-08 Thread James Sturman
Hello, I can't seem to add transparency to any color ramp I create using colorRampPalette(). Can someone tell me if it is possible to create transparent colour ramps? I am attempting to map shaded relief under elevation data. I know I can use the terrain.colors() with the alpha option, but I