use auto, clear
su price, mean
local mean = r(mean)
kdensity price, gen(x h)
line h x, || area h x if x < `mean'
Scott
On Thu, Jun 5, 2008 at 8:48 AM, Martin Weiss
<[email protected]> wrote:
> Dear Statalisters,
>
> I am wondering whether it is possible to apply a certain color or
> (transparent) texture to a certain area of a graph?
>
> In
> ********
> use auto, clear
> su price, mean
> kdensity price, xli(`r(mean)')
> ********
> I would want the area to the right of the xline to appear different from the
> left. I cannot seem to find an option to achieve this in the graph editor.
> Any ideas?
>
> Martin Weiss
>
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/