Statalist


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

Re: st: giving xline a range?


From   Nick Winter <[email protected]>
To   [email protected]
Subject   Re: st: giving xline a range?
Date   Thu, 04 Sep 2008 22:58:12 -0400

Probably the best, maybe the only, approach is to use -scatteri- to make your own line(s) wherever you need them:

. sysuse auto

. gr twoway scatter mpg price ||
scatteri 20 5000 40 5000, c(l) msym(none) legend(off)


Stata draws the plots from left to right, so you can reverse them to put the line behind the scatter points.

--Nick Winter


Will Kessler wrote:

Hello,
I'm wondering if there's a way to display "xline" over only a specified range, i.e. from the point on a curve to the point of x-intercept?
Will Kessler
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
--
--------------------------------------------------------------
Nicholas Winter                                 434.924.6994 t
Assistant Professor                             434.924.3359 f
Department of Politics                  [email protected] e
University of Virginia          faculty.virginia.edu/nwinter w
PO Box 400787, 100 Cabell Hall
Charlottesville, VA 22904
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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