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]

Re: st: Question about spmap


From   David Cuberes <d.cuberes@sheffield.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Question about spmap
Date   Tue, 7 Aug 2012 11:26:12 +0100

I solved the problem! I was merging his coordinates with some data of
mine and then I told stata to drop the non-merged countries...Of
course, for these countries there was no info on coordinates and
that's why they appeared without borders in the map...

Thanks anyway!

David


On 7 August 2012 11:22, Nick Cox <njcoxstata@gmail.com> wrote:
> I have never used it but it's evident from Friedrich's work that it is
> of very high quality. You could try testing with other datasets to see
> if the problem is reproducible.
>
> Nick
>
> On Tue, Aug 7, 2012 at 10:39 AM, David Cuberes
> <d.cuberes@sheffield.ac.uk> wrote:
>> Thanks for your help, Nick.
>>
>> I got the shapefiles from "world_adm0.zip", a shapefile that contains
>> the boundaries of all countries of the world. this is from the wep
>> page "International Education Statistics (by Friedrich Huebler)". I am
>> using the following syntax:
>>
>> spmap egg2 using "world-c.dta" if country!="Antarctica", id(id)
>> fcolor(Blues) legend(symy(*2) symx(*2) size(*2)) /*
>> */ title("Entrepreneurs Gender Gap", size(*1.0))  legorder(lohi)
>>
>> Thanks again!
>>
>> David
>>
>>
>>
>> On 7 August 2012 10:19, Nick Cox <njcoxstata@gmail.com> wrote:
>>> -spmap- is from SSC. -spmap- by and large draws maps according to the
>>> data it is given. On this information I have to guess that your
>>> problem lies in your data and can be fixed only by fixing the data.
>>> For example, borders and coasts are different and a dataset with
>>> borders only won't show coasts.
>>>
>>> Nick
>>>
>>> On Tue, Aug 7, 2012 at 9:54 AM, David Cuberes <d.cuberes@sheffield.ac.uk> wrote:
>>>
>>>> I am trying to construct a worldwide map using the command "spmap".
>>>> Stat produces the graph as expected...except for the fact that some
>>>> countries do not have a border! In particular, while the Americas and
>>>> Europe are totally fine, I don't have borders for Africa or Asia! I
>>>> mean, there are still borders across countries in these continents,
>>>> but the sea borders are often missing...
>>>>
> *
> *   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/



-- 
David Cuberes
Lecturer
Department of Economics
University of Sheffield
Times Higher Education University of the Year

+44 (0)114 22 23313
https://sites.google.com/site/davcuberes/
*
*   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