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: have different sizes of dots in scatter plot


From   tashi lama <ltashi32@hotmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: have different sizes of dots in scatter plot
Date   Tue, 28 Aug 2012 21:03:58 +0000

Hello all, 
   I see one posting related to this question. Nick Cox has answered but I am not sure if I understood. The previous posting is following

http://www.stata.com/statalist/archive/2006-06/msg00291.html

I have a dataset 
        doc_type   doc_publish   hitspedoc   hitsperdoc1 |
  |------------------------------------------------|
  | Company Note        1031   96.99321   46.96734 |
  | Industry Note       2345   9.808103    4.74941 |
  |      Earning        1234   36.46677   17.65843 |
  |  Hot Comment         567   37.03704         20 |
  |         SPARC       2900    26.2069   12.69025 |

I would like to draw to a scatter plot but would like to have different sizes of scatter based on the doc_publish

twoway scatter hitsperdoc1 hitsperdoc [fweight=doc_publish] =>gives varied scatter sizes but i would like to include mlabel
twoway scatter hitsperdoc1 hitsperdoc [fweight=doc_publish], mlabel(doc_type)  => gives mlabel but scatter sizes becomes same 

Does anyone provide me a link or some idea to be able to have both mlabel and get different scatter sizes? 

Thanks, 
Tashi  		 	   		  
*
*   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