Bookmark and Share

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


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

Re: st: graph: how to draw 45 degree reference line


From   Philipp Rehm <[email protected]>
To   [email protected]
Subject   Re: st: graph: how to draw 45 degree reference line
Date   Sat, 13 Mar 2010 15:20:28 -0500

.
sysuse auto, clear
tw (scatter weight price) ///
 (function y=x, range(0 16000))


On 3/13/2010 3:13 PM, Sun, Yan (IFPRI) wrote:
Dear Statalist members,

I would like to draw a y=x reference line (which is 45 degree line) for
my twoway scatter plots. I would appreciate if anyone could let me know
the method. Thanks.

Yan Sun
IFPRI

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

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index