I am trying to add a customize legend to ggplot. I am using water colors plot from (http://www.nicebread.de/visually-weighted-watercolor-plots-new-variants-please-vote/). The code for vwReg is present in the website.
I am plotting 2 different data as
mtcars$rand2 = rnorm(nrow(mtcars))
mtcars$rand1 = rnorm(nrow(mtcars))
pp1 = vwReg(rand1~wt, data=mtcars, spag=T, add=T, shade=F, spag.color="green")
pp2 = vwReg(rand2~wt, data=mtcars, spag=T, add=T, shade=F, spag.color="red")
ggplot2() + pp1 + pp2
However, it does not give any legend to rand1 and rand2. I tried to add a color asthestic to geom_path that creates spag (spagetti) plot. However the plot is too thin and not visible. I am wondering if there is a way to add a customize-legend as a separate layer and tell it to be have 2 color red and green.
I code for vwReg can be also downloaded from https://dl.dropboxusercontent.com/u/2706915/vwRegs.R