Skip to content

transparency in segments()

3 messages · Robert Pazur, Rui Barradas, David Winsemius

#
Hello,

You can use ?rgb to set the transparency level. As an example, with 
alpha = 0.5

clr <- c(rgb(1, 0, 0, 0.5), rgb(0, 0, 1, 0.5))
plot(0:1, 0:1, col = clr[1], lwd = 10, type = "l")
lines(0:1, 1:0, col = clr[2], lwd = 10)


Hope this helps,

Rui Barradas
Em 10-01-2013 21:29, Robert Pazur escreveu:
#
On Jan 10, 2013, at 1:29 PM, Robert Pazur wrote:

            
Try this:

?colors
David Winsemius
Alameda, CA, USA