[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: superimpose 45 degree line in -scatter-
For adding lines, my quick and dirty solution is to plot x against x and
not label the line, using twoway command. This will give you a 45 line.
You can define some variables to give you any slope you want. For example,
if you wanted a 30 line.
Here is the command:
twoway (scatter y x, sort) (line v x), legend(off);
Perhaps there is a more elegant way.
On Sun, 7 Mar 2004 firstname.lastname@example.org wrote:
> Dear Statalisters,
> I'm using Stata 8 and I would like to know whether and how it is possible to
> superimpose a 45 degree line, a 30 degree line, etc over a -scatter- graph.
> Further, does Stata support graphs in polar coordinate planes? Or did someone
> wrote something on this?
> many thanks in advance,
> Dimitris Christodoulou
> This mail sent through http://webmail.bangor.ac.uk
> * 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/
Dimitriy V. Masterov
Center for Social Program Evaluation
1155 East 60th St. Room 038
Chicago, IL 60637
1312 East 53rd St., Apt.309
Chicago, IL 60615
* For searches and help try: