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, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Scatterplot with weight-scaled markers and labels


From   "Allan Reese (Cefas)" <allan.reese@cefas.co.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Scatterplot with weight-scaled markers and labels
Date   Fri, 12 Mar 2010 12:03:38 -0000

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)

R Allan Reese
Senior statistician, Cefas
The Nothe, Weymouth DT4 8UB 

Tel: +44 (0)1305 206614 -direct
Fax: +44 (0)1305 206601 

www.cefas.co.uk 



***********************************************************************************
This email and any attachments are intended for the named recipient only.  Its unauthorised use, distribution, disclosure, storage or copying is not permitted.  If you have received it in error, please destroy all copies and notify the sender.  In messages of a non-business nature, the views and opinions expressed are the author's own and do not necessarily reflect those of the organisation from which it is sent.  All emails may be subject to monitoring.
***********************************************************************************


*
*   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