[R] ggplot geom_freqpoly() layers ..?

2011-09-08 Thread Brian Smith
Hi, I was trying to overlay/combine two freqpoly plots. The sample code below illustrates the problem. Essentially, I want to do is: 1. Have the same colour for all the lines in 'Plot 1' (and 'Plot 2'). Currently, all the lines in Plot 1 have different colours and all the lines in Plot 2 have

Re: [R] ggplot geom_freqpoly() layers ..?

2011-09-08 Thread Ista Zahn
Hi Brian On Thu, Sep 8, 2011 at 10:30 AM, Brian Smith bsmith030...@gmail.com wrote: Hi, I was trying to overlay/combine two freqpoly plots. The sample code below illustrates the problem. Essentially, I want to do is: 1. Have the same colour for all the lines in 'Plot 1' (and 'Plot 2').

Re: [R] ggplot geom_freqpoly() layers ..?

2011-09-08 Thread Brian Smith
Hi, Thanks for the reply. For the combined plot, if I use: ggplot(comb2) + geom_freqpoly(aes(x = value, y = ..density.., group = X2)) I get the same colour for both the sets of distributions. What I want is one colour for the first set of distributions, and a different

Re: [R] ggplot geom_freqpoly() layers ..?

2011-09-08 Thread Ista Zahn
On Thu, Sep 8, 2011 at 12:10 PM, Brian Smith bsmith030...@gmail.com wrote: Hi, Thanks for the reply. For the combined plot, if I use:     ggplot(comb2) + geom_freqpoly(aes(x = value,                     y = ..density.., group = X2)) I get the same colour for both the sets of