Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   Re: st: have different sizes of dots in scatter plot
Date   Tue, 28 Aug 2012 20:39:09 -0400

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 <[email protected]> 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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index