Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Weighted scatterplot with -mlabel-


From   "David Harrison" <[email protected]>
To   <[email protected]>
Subject   st: RE: Weighted scatterplot with -mlabel-
Date   Thu, 8 Jun 2006 09:30:06 +0100

It is a "feature"  - the manual and help both tell you it will happen.
You can still get labels and weights together by overlaying two scatter
plots, e.g.

twoway (scatter price mpg [fweight=weight]) ///
    (scatter price mpg, ms(i) mlabel(make)), legend(off) 

David

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Richard
Upward
Sent: 08 June 2006 09:09
To: [email protected]
Subject: st: Weighted scatterplot with -mlabel-

Dear Statalisters

I am trying to produce a weighted scatterplot which includes labels for
each point.  But when I use the -msymbol- option, the weighting seems to
be removed.  A silly example:

sysuse auto
scatter price mpg [fweight=weight]
scatter price mpg [fweight=weight], mlabel(make)

The first scatter command weights the points, the second does not.  Is
this behaviour a "bug" or a "feature", or am I missing something
obvious?

I am using Stata/SE 9.2 for Windows
Born 17 May 2006

Richard


Richard Upward
School of Economics
University of Nottingham
University Park
Nottingham NG7 2RD
Tel: +44 (0) 115 95 14735

http://www.nottingham.ac.uk/economics/staff/details/richard_upward.html


This message has been checked for viruses but the contents of an
attachment may still contain software viruses, which could damage your
computer system:
you are advised to perform your own checks. Email communications with
the University of Nottingham may be monitored as permitted by UK
legislation.


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

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index