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

From   "Nick Cox" <>
To   <>
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. 


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:

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