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]
st: Twoway scatter - legend options
From
Alice Guerra <[email protected]>
To
[email protected]
Subject
st: Twoway scatter - legend options
Date
Mon, 12 Aug 2013 17:03:21 +0200
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/