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


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

Roger Newson <> 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

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

*   For searches and help try:

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