Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: overlay -scatter- plots with consistent weights |
Date | Fri, 17 May 2013 19:00:38 +0100 |
On 17 May 2013, at 18:49, Jeph Herrin <stata@spandrel.net> wrote:
I would like to overlay three -scatter- plots representing different conditions and use weights toindicate the volume, ie:scatter y1 x if cond1 [w=volume], mcolor(blue) sort msymbol (0h) || /// scatter y1 x if cond2 [w=volume], mcolor(red) sort msymbol(0h) || ///scatter y1 x if cond3 [w=volume], mcolor(green) sort msymbol(0h)the problem is that each plot rescales the size of symbols according the range of weights for respective subsets. Is there a way around this, or a way to color observations on the sme -scatter- plot according to a condition? As is, my observations meeting -cond1- have the smallest volumes but the largest symbols because of the large range of values.thanks, Jeph * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/