Re: [R-sig-Geo] semi-transparent layer with image()

2007-11-16 Thread hadley wickham
There's the alpha function in the ggplot2 package: plot(1:90, 1:90, pch=16, cex=2, col="red") points(1:90, 1:90, pch=16, cex=2, col=alpha(grey(90:1/90), 0.5)) Hadley On 11/16/07, Ingo Holz <[EMAIL PROTECTED]> wrote: > Hi, > > is there an easier way to get a semi-transparent grey-palette? > > p

[R-sig-Geo] semi-transparent layer with image()

2007-11-16 Thread Ingo Holz
Hi, is there an easier way to get a semi-transparent grey-palette? plot(1:90, 1:90, pch=16, cex=2, col="red") points(1:90, 1:90, pch=16, cex=2, col=rgb(t(col2rgb(grey(90:1/90))), alpha=100, maxColorValue=255)) windows() does support semi-transparent colours Thanks, Ingo [[alternat

Re: [R-sig-Geo] semi-transparent layer with image()

2007-11-16 Thread Edzer J. Pebesma
Although not specifically related to r-sig-geo, I'll comment a bit - I wouldn't delete part of the cells, but rather define the transparency bit in the color. You can do that, e.g. by > rgb(1,0,0,0.5) [1] "#FF80" you'll get half transparent red. Note that you need a device that supports t

[R-sig-Geo] semi-transparent layer with image()

2007-11-16 Thread Ingo Holz
Hi, I have two objects of "class image" (a list of x, y, z coordinates, where z is a matrix and x and y are row names / col names). I would like to overlay one of this images on top of the other. As a semi- transparent overlay. Is this possible using function image()? I suppose I could set