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]

RE: st: have different sizes of dots in scatter plot


From   tashi lama <ltashi32@hotmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: have different sizes of dots in scatter plot
Date   Wed, 29 Aug 2012 13:42:25 +0000

super awesome... thanks
----------------------------------------
> Date: Tue, 28 Aug 2012 20:39:09 -0400
> Subject: Re: st: have different sizes of dots in scatter plot
> From: fhuebler@gmail.com
> To: statalist@hsphsun2.harvard.edu
>
> Tashi,
>
> You can draw more than one plot with one command. See -help graph_twoway-.
>
> twoway (scatter hitsperdoc1 hitsperdoc [fweight=doc_publish]) (scatter
> hitsperdoc1 hitsperdoc, mlabel(doc_type))
>
> Friedrich
>
> On Tue, Aug 28, 2012 at 5:03 PM, tashi lama <ltashi32@hotmail.com> wrote:
> >
> > 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/ 		 	   		  
*
*   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