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]

Re: st: overlay -scatter- plots with consistent weights


From   Nick Cox <[email protected]>
To   "[email protected]" <[email protected]>
Subject   Re: st: overlay -scatter- plots with consistent weights
Date   Fri, 17 May 2013 19:00:38 +0100

-separate- (or separate) your y variable into three variables; then draw one -scatter- with three y variables.


On 17 May 2013, at 18:49, Jeph Herrin <[email protected]> wrote:


I would like to overlay three -scatter- plots representing different conditions and use weights to
indicate 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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index