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: RE: Scatterplot with weight-scaled markers and labels


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
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 
n.j.cox@durham.ac.uk 

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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index