[R] Filling in a uniform dist plot

2009-08-15 Thread David Kaplan
Hi all, Apologies in advance if this is really too simple, but I have given a good shot at this. I'm generating a standard uniform distibution y - dunif(x) plot(x,y,type=l) This will draw a horizontal line at y = 1. I want to fill the area from x=(0,1) with a color. I've tried the

Re: [R] Filling in a uniform dist plot

2009-08-15 Thread Peter Dalgaard
David Kaplan wrote: Hi all, Apologies in advance if this is really too simple, but I have given a good shot at this. I'm generating a standard uniform distibution y - dunif(x) plot(x,y,type=l) This will draw a horizontal line at y = 1. I want to fill the area from x=(0,1) with a color.

Re: [R] Filling in a uniform dist plot

2009-08-15 Thread David Kaplan
Yep. That's it. Thanks. David Peter Dalgaard wrote: David Kaplan wrote: Hi all, Apologies in advance if this is really too simple, but I have given a good shot at this. I'm generating a standard uniform distibution y - dunif(x) plot(x,y,type=l) This will draw a horizontal line