Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Strange interaction between weights and the -mlabel()-


From   Roger Newson <roger.newson@kcl.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Strange interaction between weights and the -mlabel()-
Date   Mon, 22 Nov 2004 21:06:41 +0000

Thanks to Vince for this information, and thanks in advance to StataCorp for the future documentation update.

For what it's worth, there is a workaround. You can type

. twoway scatter mpg weight [awei=price] || scatter mpg weight , mlab(make) msym(none) || , legend(off)

and get what I hoped to get by typing (in error)

. twoway scatter mpg weight [awei=price], mlab(make)

It might look even better with a -mlabgap()- option on the second plot.

Best wishes

Roger


At 20:45 22/11/2004, Vince Wiggins wrote:

Roger Newson <roger.newson@kcl.ac.uk> asks about labeling weighted marker
symbols on a scatter plot,

> [...] However, if I type
>
> . twoway scatter mpg weight [awei=price], mlab(make)

> then -mpg- is plotted against -weight-, and the symbols are labelled
> by -make-, but are unweighted. [...]

-scatter- does not allow weights to be combined with marker labels, and I
thought that limitation was documented. If it is, I can't find it. The
documentation will be updated to reflect this "feature".

--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
  or 020 7848 6605 International +44 20 7848 6605
Email: roger.newson@kcl.ac.uk
Website: http://www.kcl-phs.org.uk/rogernewson

Opinions expressed are those of the author, not the institution.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index