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

From |
Sergiy Radyakin <serjradyakin@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: confused with syntax graphing points |

Date |
Wed, 11 Nov 2009 13:37:21 -0500 |

not sure I understood you correctly, but does the following come close? sysuse auto generate interesting=(price>10000) scatter price weight [aw=rep78] if foreign==1 & interesting==0, msymbol(Oh) || scatter price weight [aw=rep78] if foreign==0 & interesting==0, msymbol(Oh) || scatter price weight [aw=rep78] if interesting==1, msymbol(O) See here for more advice: http://www.ats.ucla.edu/stat/Stata/library/GraphExamples/default.htm http://www.stata.com/support/faqs/graphics/gph/statagraphs.html Best, Sergiy Radyakin On Wed, Nov 11, 2009 at 1:23 PM, Webicky <webicky@gmail.com> wrote: > I am looking to add several classification points to a scatter graph. > The idea is to keep ONE graph. > > scatter testscore age if test_group==2, msymbol(Oh) || scatter > testscore age if test_group==1, msymbol(Th) is my first step. This > works fine. > > The question I have struggled with is how to change only some points > that are displayed in the scatter graph but keep the entire graph. > > I want to use variable expgroup(1=yes 0==no) to change markers where > expgroup== 1 & test_group==2 to msymbol(O) and where expgroup== 1 & > test_group==1 to msymbol(T), but keep them in the same graph. So - I'd > have the same graph above except some points would be hollow others > filled. > > I'd like to add one more step of complexity and change the size of the > markers based on more variable - again keeping it in the same scatter. > for example variable entrypoint(1=ontime, 0=late). test_group==2 & > entrypoint ==1 / test_group==1 & entrypoint ==1. > > Thanks for any suggestions. > > Ben Web man > webicky@gmail.com > > * > * 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/ > * * 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/

**References**:**st: confused with syntax graphing points***From:*Webicky <webicky@gmail.com>

- Prev by Date:
**st: RE: confused with syntax graphing points** - Next by Date:
**Re: st: AW: forvalues & replace not working under two 'not equal to' conditions** - Previous by thread:
**Re: st: RE: confused with syntax graphing points** - Next by thread:
**Re: st: RE: confused with syntax graphing points** - Index(es):

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