Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: graphing lines

From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: graphing lines
Date   Wed, 26 Jan 2011 20:13:17 +0000

Yes. Consider 

. sysuse auto
(1978 Automobile Data)

. sc mpg weight || scatteri 20 2000 30 3000, recast(line) lw(*5)

[email protected] 

Lim, Raymond

Is there a way to specify two points on a graph and draw a line connecting them? I know about xline() and yline(), but I don't want the line extending the entire plot region. 

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index