Displaying 1 result from an estimated 1 matches for "betwval".
2002 Jan 30
2
Shade area under curve?
Hi all,
I've got this graphics question which really should be easy. I want to shade
an area between bounds under a curve. A suitable beginning seems to be the
following:
> plot(dnorm,-4,4)
> segments(-4,0,4,0)
> segments(-2,0,-2,dnorm(-2))
> segments(2,0,2,dnorm(2))
It is the area between -2 and 2 which I want to shade (or something
similar). Hints anyone?
Robert