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 on April 23, and its replacement, 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 <>
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.

*   For searches and help try:

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