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]

st: RE: RE: sequential graphing


From   "Lim, Raymond" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: RE: RE: sequential graphing
Date   Tue, 15 Feb 2011 13:48:47 -0500

I guess a more concrete example of pcspike would clarify. This is a completely random example. Let's say you have a map of Central Park. You have beginning x-y coordinate of a trip and end x-y. You connect these points with a red line for trips that are completed earlier than expected or on time, and a blue line for trips that are completed later than expected. In my graphing command, if I specify the red first and blue next; the blue lines washes out the red. Vice versa if I swap the order. 

The code would be something along the lines of:
twoway pcspike y_start x_start y_end x_end if early==1, lwidth(vvthin) lcolor(red)  ///
|| pcspike y_start x_start y_end x_end if early==0, lwidth(vvthin) lcolor(blue) 

Again, this is a completely random example. 

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