Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: overlay -scatter- plots with consistent weights


From   Jeph Herrin <stata@spandrel.net>
To   statalist@hsphsun2.harvard.edu
Subject   st: overlay -scatter- plots with consistent weights
Date   Fri, 17 May 2013 13:49:25 -0400


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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index