Re: [R] Selectively shading areas under two density curves

2007-08-06 Thread Jim Lemon
Ian Watson wrote: Dear Listers, I am drawing a plot of two density curves, for male and female incomes. I would like to shade/hatch/color (whatever) the areas under the curves which are distinctive for each gender. This is the code I have tried so far: m - density(topmal.d$y, bw =

[R] Selectively shading areas under two density curves

2007-08-04 Thread Ian Watson
Dear Listers, I am drawing a plot of two density curves, for male and female incomes. I would like to shade/hatch/color (whatever) the areas under the curves which are distinctive for each gender. This is the code I have tried so far: m - density(topmal.d$y, bw = sj) f - density(topfem.d$y,