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]
st: overlay -scatter- plots with consistent weights
From
Jeph Herrin <[email protected]>
To
[email protected]
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/