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

st: legends for function graphs

From   "Richard Hiscock" <>
To   <>
Subject   st: legends for function graphs
Date   Sun, 21 Aug 2005 20:27:51 +1000

I am trying to create a legend for graphs of functions. Illustrated for example by y=f(x)

twoway function y=(x), xline(0.5, lwidth(thick) lcolor(red) lpattern(dash)) xlabel(0(0.1)1)
clwidth(thin) clcolor(blue) clpattern(shortdash_dot)

as an example I wish to add a legend indicating the function - dash line = f(x) & the label for the other line - dash_dot = point estimate

I have tried the legend(label 1"") options this seems to need variables in data set & does not label functions or xlines/ylines.

Any help would be appreciated
Thanks Richard Hiscock

* For searches and help try:

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