Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: graph problem


From   Friedrich Huebler <fhuebler@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: graph problem
Date   Wed, 1 Aug 2012 22:15:33 -0400

Yingge,

You must change the sort order of your data between the two -graph-
commands. It is unlikely that you would get two different graphs with
this sequence of commands:

. graph twoway (scatter p1 age if ~coa, msym(i) connect(L))
. graph twoway (scatter p1 age if ~coa, msym(i) connect(L))

Friedrich

On Mon, Jul 30, 2012 at 2:01 PM, Yingge Lin <yingge.lin@gmail.com> wrote:
> hello,
>
> I try to graph using Stata. The prgraom I used is:
>
> .graph twoway (scatter p1 age if ~coa, msym(i) connect(L))
>
> If I run the program for the first time, the graph looks ok. But if I
> run it again, it will connect dots in a wrong way. Why? It is very
> strange to get different graphs just redo the program.
>
> Any thought?
>
> Best,
> yingge
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index