Dear all
I am trying to shade the area under a line on a scatter plot but despite my best efforts i cannot seem able to make it work. I am using the following code to define the coordinates of the area i want shaded:
Code:
twoway scatter ... || scatteri ... , msymbol(none) bcolor(black) recast(connected) lpattern(solid)
The result is illustrated on Figure 1. But when i change the recast option to "area" the graph gets messed up as Figure 2 shows. Apparently, my guess is that i have to define coordinates for every single point in order for this to work and again i am not sure.
I was wondering if there is a simpler way of doing this? Or does anyone have any ideas?
Thank you.
Cynthia
Comment