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: sequential graphing
From 
 
Nick Cox <[email protected]> 
To 
 
"'[email protected]'" <[email protected]> 
Subject 
 
st: RE: sequential graphing 
Date 
 
Mon, 14 Feb 2011 21:36:50 +0000 
In addition to other answers: 
1. Choosing the same symbol + for both graphs can hardly improve the problem. I've found that combining e.g. Oh and X permits greater visibility of both. 
2. Sometimes the problem is at least in part the granularity of measurement. Jittering one or both graphs may help. 
3. Did you think about -by()-, namely 
twoway scatter y x if inlist(type, 13, 16), mcolor(red) msize(vsmall) msymbol(+)
by(type) 
4. A recent column in the Stata Journal explored the idea of plotting subsets twice, each time showing the subset as foreground and the total set as background. See
SJ-10-4 gr0046  . . . . . . . . . . . . . . . Speaking Stata: Graphing subsets
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
        Q4/10   SJ 10(4):670--681                                (no commands)
        explores graphical comparison of results for two or more
        subsets where each subset is plotted in a separate panel,
        with the rest of the data as a backdrop
Nick 
[email protected] 
Lim, Raymond
I'm making scatterplots of x-y coordinates using two different colors. Stata scatters the red dots first, then the blue. Sadly, the blue covers up most of the red. Is there a way to graph the red and blue dots in the sequence that they appear in the dataset so the end graph has a mix of red and blue? I also plan to do pcspike (connect two points with a line) graphs too.
I've already tried playing around with the transparency, msize and msymbol.
twoway scatter y x if type==16, mcolor(red) msize(vsmall) msymbol(+) || scatter y x if type==13, mcolor(blue) msize(vsmall) msymbol(+)
*
*   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/