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: spmap question


From   Maurizio Pisati <[email protected]>
To   [email protected]
Subject   Re: st: spmap question
Date   Tue, 15 Jan 2013 22:54:09 +0100

Dear Sandu,
in most cases, the problem you mention can be solved by adding an indicator variable called _EMBEDDED to the basemap dataset. This variable should take value 1 if the corresponding polygon is completely enclosed in another polygon, and value 0 otherwise. For details, please see the -spmap- help file ("Spatial data format").
Best wishes,
Maurizio



Il giorno 15/gen/2013, alle ore 21.22, Alexandru Cojocaru ha scritto:

> Dear all,
> 
> I am interested in drawing a map using -spmap- (available from SSC).
> The map is of the kind given in this example available in the -spmap-
> helpfile:
> 
> *****
> use "Italy-RegionsData.dta", clear
> spmap relig1 using "Italy-RegionsCoordinates.dta", id(id)
> *****
> 
> i.e. the colors indicate the prevalence of some characteristic. In my
> case, one polygon (for the capital city) is fully surrounded by
> another region. If prevalence is higher in the capital city than in
> the surrounding region, the darker color of the capital city polygon
> displays correctly. In the reverse case, however, the polygon for the
> capital gets the same (darker) color of the surrounding region.
> 
> Any thoughts on what can be done to get the capital city polygon to
> display the correct color?
> 
> cheers,
> Sandu
> *
> *   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/


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