filling under the curve with the stat function option #1528
I would like to create a graph with the normal function from x=-2 to x=2 filled red under the curve from -2 to 0 and blue from 0 to 2.
But it doesn't work as expected.
I've also tried with the xmin and xmax option, without success.
It would also be nice to be able to specify two stat functions o values, one for ymax one for ymin, in order to easily paint the are between two curves.
The text was updated successfully, but these errors were encountered:
Great, thank you.
Why do you need the first "c(-2,2)"?