You could overlay two scatter plots. One with bubble plot and the
other with the labels. For example:
sysuse auto,clear
twoway scatter displacement mpg [aweight=price], by(fore) ///
msymbol(circle_hollow) msize(vlarge) ///
|| scatter displacement mpg, msymbol(none) mlabel(make)
Hope this helps,
Scott
----- Original Message -----
From: Alex Gamma <[email protected]>
Date: Tuesday, December 27, 2005 4:33 am
Subject: st: Graph: labeling markers destroys weighted bubble plot
> Hi Statasticians,
>
> I want a nice bubble plot, where the bubble size is scaled
> according to the
> value of my weight-variable "msyv". ( [G] has an example of this
> on page
> 349. ) This works fine as long as I don't specify a marker-
> variable for
> labeling my bubbles: if I do, all the bubbles have the same size
> and no
> longer reflect the weights.
>
> In other words, this works:
>
> scatter fr nsy [w=msyv] if syr==1,by(year) msymbol(Oh)
>
>
> whereas this labels my bubbles, but destroys the weighting of
> bubble size.
>
> scatter fr nsy [w=msyv] if syr==1,by(year) msymbol(Oh) mlabel(sy)
> mlabsize(tiny)
>
> I've spent some hours studying the Graphics manual, but it seems
> to me, that
> my solution should work. Does anybody know how I can have my cake
> and eat
> it?
>
> Alex
>
> *
> * 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/
>
*
* 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/