Statalist


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

Re: st: spmap: color only selected areas?


From   Scott Merryman <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: spmap: color only selected areas?
Date   Sat, 18 Apr 2009 15:28:48 -0500

You can use the polygon option to draw the areas that are not colored.
 Using the first exampe in the spmap help file:

 use "Italy-RegionsData.dta", clear

 spmap relig1 if zone == 1 using "Italy-RegionsCoordinates.dta",
id(id) poly(data( "Italy-RegionsCoordinates.dta"))

Scott

On Tue, Apr 14, 2009 at 10:11 AM, Shelob1985@libero.it
<Shelob1985@libero.it> wrote:
> I need to draw a map with different states and I want only some selected states
> to be colored. I tried to create a dummy which is =1 in those areas that need
> to be colored and use a Choropleth map but it didn't work. Any suggestions?
> Thanks everyone!
>
*
*   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   |   What's new   |   Site index