Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Graph overlay order


From   "Brad De Groot" <[email protected]>
To   <[email protected]>
Subject   st: Graph overlay order
Date   Tue, 14 Feb 2006 09:43:51 -0600

I'm still using STATA 8.2.

I have plotted a histogram with a normal curve centered at the mean and scaled to the standard deviation using:

graph twoway histogram Wgt if Lot == 9,freq width(25) xline(575) ||function SD = normden((x - 575)/49)*30, range(420 750) xscale(range(350 900)) xlabel(400(100)800)  title("Lot 9 Histogram, Mean, Standard Deviation")

The 'xline(575) produces a line from the x axis that is just the way I want it to look, except it is behind the histogram rather than in front of it.

I've tried placing the 'xline' option in the histogram statement and in the function statement but in either case the line is plotted behind the histogram. 

Is it possible to control the overlay order of added lines? I've looked for control of overlay orders for lines in added_line_options, addedlinestyle, lines and linestyle. Have I missed it in there somewhere? I'll be grateful for any advice.

Thanks,

Brad

Bradley D. De Groot, D.V.M., Ph.D.
Veterinary Epidemiologist
KSU-CVM-DMP-FAHMC
Mosier I-102
1800 Denison Ave.
Manhattan KS 66506
(O) 785 532 4845
(F) 785 532 4288
[email protected]


*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index