Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: RE: legends for function graphs


From   "Richard Hiscock" <[email protected]>
To   <[email protected]>
Subject   st: Re: RE: legends for function graphs
Date   Sun, 21 Aug 2005 22:01:14 +1000

Thanks Scott.
With brackets enclosing each function it does the job
Cheers Richard Hiscock
----- Original Message ----- From: "Scott Merryman" <[email protected]>
To: <[email protected]>
Sent: Sunday, August 21, 2005 9:47 PM
Subject: st: RE: legends for function graphs



How about this:

twoway function y=cos(x^2 -x), xline(0.5, lwidth(thick) lcolor(red) ///
lpattern(dash)) xlabel(0(0.1)1) ///
clwidth(thin) clcolor(blue) clpattern(shortdash_dot) ///
legend(on) yvarlab("dash_dot = point estimate") ///
|| function y = 1, lc(none) yvarlab("dash line = f(x)")

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