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: RE: graphing lines


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: RE: graphing lines
Date   Thu, 27 Jan 2011 16:48:45 +0000

You can use the same principle:

sc mpg weight || scatteri 35 3000, ms(Oh) msize(*7)

So, this way the circle entre is exactly placed, but the radius is
controlled indirectly.

If it's really important to control exactly where the circumference
lies, you will have to use -twoway function- instead of -scatteri-.
The trick then is to draw the top and bottom halves of a circle
separately and to take care that they are shown in the same colour.
There's more at

SJ-4-4  gr0010  . . . . . . . . . . . Stata tip 15: Function graphs on the fly
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
        Q4/04   SJ 4(4):488--489                                 (no commands)
        tips for graphing functions using graph twoway function

http://www.stata-journal.com/sjpdf.html?articlenum=gr0010

I'd guess I owe that trick to Vince Wiggins.

Nick

On Thu, Jan 27, 2011 at 3:30 PM, Lim,  Raymond <[email protected]> wrote:

> scatteri is great! Is there a way to make circles also?
*
*   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