n=10
x=rnorm(n)
y=rnorm(n)
z=seq(n)
w=sample(c("A","B"),10,replace=TRUE)
# This works.
qplot(x,y,colour=z,geom="path",size=I(2))
# This does not (all the line segments have the same alpha value).
qplot(x,y,alpha=z,geom="path",size=I(2))
# This does seem to work, though.
qplot(x,y,alpha=z,colour=z,geom="path",size=I(2))
# And this does not.
qplot(x,y,alpha=z,colour=w,geom="path",size=I(2))
--
Karl Ove Hufthammer