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: Twoway scatter - legend options
From
Nick Cox <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: Twoway scatter - legend options
Date
Mon, 12 Aug 2013 16:15:16 +0100
The first part is just a matter of using a different variable for
marker labels. The second part may be just a matter of building a
macro step by step that you feed to -legend(order())-.
I could guess at details, but it's best that you tell us how you are
holding names "Abruzzo" etc and numbers 1..20 in your dataset.
Nick
[email protected]
On 12 August 2013 16:03, Alice Guerra <[email protected]> wrote:
> Dear Statalists,
>
> I would like to plot a graph in which each Italian region is denoted
> by a number ("codreg" in the following code) instead of their own
> names. I would like then to insert in the legend the regions' names
> with the corresponding number. How can I modify the code to achieve
> this result?
>
> The code that I've used until now is as follows:
>
> twoway (scatter res0 load0m [aweight=pres0], msymbol(oh) mcolor(black)
> msize(large)) ///
> (scatter res0 load0m, mlabel(codreg) msymbol(i) mlabcolor(black)
> mlabsize(vsmall) mlabpos(center)), ///
> ylabel(35(5)65, angle(0) labsize(small)) ytitle("tasso di
> risoluzione", size(small) height(5)) ///
> xlabel(0(500)1500, angle(0) labsize(small)) xtitle("casi definiti (in
> migliaia)", size(small) height(5))
>
> I am very grateful for any help and suggestion
>
> Kind Regards
>
> Alice Guerra
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/