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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: spmap


From   "Lynn Lee" <lynn09v@gmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: spmap
Date   Sat, 22 Sep 2012 21:26:39 +0800

Dear Prof. Pisati,

I am really sorry, but I still do not fully understand the -by()- option.
-label()- option only allows one variable in bracket, -by()- is to group
labels, but I do not want to group them. I have two variables "ename" and
"GDP" to be labeled, if I write -label(label(ename) label(GDP))-, it is
wrong. If I write -label(label(ename) by(GDP))-, it shows ename only, no GDP
value added on the map.  From definition of -by()-, it should be possible to
add more than one labels. But I do not know how to add another label
correctly. Could you please give me some suggestion?

Best Regards,
Lynn Lee


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Maurizio Pisati
Sent: Saturday, September 22, 2012 7:30 PM
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: spmap

Dear Lynn,
yes, it's possible, you can plot as many different labels as you like using
suboption -by()- of option -label()-. See the -spmap- help file for exact
syntax and details.
Best wishes,
Maurizio
 



Il giorno 22/set/2012, alle ore 13.24, Lynn Lee ha scritto:

> Thank Prof. Pisati  and Prof. Cox. I really appreciate for your reply 
> and very helpful suggestion.
> 
> Prof. Pisati, if I want to label two variables on the map, for 
> example,  one is region's name, another is region's GDP, is it 
> possible? I tried to put
> label(GDP) in label() option, the command was wrong. Could you please 
> give me some suggestion?  I appreciate.
> 
> Best Regards,
> Lynn Lee
> 
> 


*
*   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