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]

st: RE: Scatterplot with weight-scaled markers and labels


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Scatterplot with weight-scaled markers and labels
Date   Fri, 12 Mar 2010 15:23:29 -0000

The logic can be guessed: Stata tries not to make a mess on purpose, but
you are totally at liberty to do that if you want. More prosaically, the
calculation of where the marker labels should be is, I imagine, more
difficult if the markers vary in size. 

Nick 
[email protected] 

Allan Reese

Here's a funny little feature.  [G] states, "Weights are ignored when
the mlabel() option is specified." So

scatter y x  [fw=sample], ms(oh) mlab(sample) mlabpos(c)

made a graph with symbols all the same size.  

The logic isn't obvious, as the symbols and labels can be overlaid quite
easily ...

scatter y x  [fw=sample], ms(oh) mcol(gs12) legend(off) || scatter y x,
ms(i) mlab(sample) mlabpos(c) mlabsize(tiny) mlabcol(gs6)


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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