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

st: RE: superimpose 45 degree line in -scatter-


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: superimpose 45 degree line in -scatter-
Date   Sun, 7 Mar 2004 16:26:51 -0000

A line at an angle theta from the horizontal 
has an equation like y = x tan(theta) and can be superimposed
by using -twoway function-. You need to work with radian
measure. 

e.g scatter response predictor || function y = x, ra(predictor)  

scatter response predictor || function y = x * tan(_pi / 6), ra(predictor) 

There is no direct support for polar coordinates in official
Stata. Some user-written programs exist for circular statistics,
as -findit- makes clear. 

Nick 
n.j.cox@durham.ac.uk 

absc11@bangor.ac.uk
> 
> 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?

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



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