Here is an easy example of a shaded area, tweak that to your needs:
***
clear*
set obs 200
gen x=_n/100
gen y=2
twoway (area y x, ///
sort fcolor(ltblue))
***
You can overlay it with any of the other -twoway- graphs...
HTH
Martin
_______________
----- Original Message -----
From: "john metcalfe" <[email protected]>
To: <[email protected]>
Sent: Tuesday, May 12, 2009 7:57 AM
Subject: st: Graph shading
Dear Statalist,
I am creating a poster for a conference, and would like to shade
certain regions of my graph to demonstrate changes in probability with
performance of a diagnostic test. Does anyone know how to do this? I
am using Stata 10. Pasting the graph in below does not work, but if
for example I am working with a grid y=0-10 and x=0-10, I would like
to shade the region above y=2 and x=2.
Thanks much,
John
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/