-geoplot- (on SSC) written by Ben Jann is a fantastic program and the tutorial "Maps in Stata III: geoplot" provided by Asjad Naqvi is very helpful. However, its example data files "countries.dta" and "countries_shp.dta" available at GitHub convey a political message that is highly problematic: According to the data Crimea is part of Russia, not of Ukraine. Only a few states have recognized Russia's annexation of Crimea in violation of international law. I wonder where the data come from and who decided to code Crimea as being a part of Russia. Perhaps Asjad Naqvi can answer this?
For those, who want to create maps using the data of the "countries" files, here is a correction that relocates Crimea to Ukraine to which it rightfully belongs:
The Stata Forum should not be a place for political debates. But the data are a strong provocation that cannot be ignored in view of Russia's criminal war against Ukraine: Слава Україні!
For those, who want to create maps using the data of the "countries" files, here is a correction that relocates Crimea to Ukraine to which it rightfully belongs:
Code:
use "countries_shp.dta", clear // Move Crimea from Russia to Ukraine: replace _ID = 34 if _ID==76 & inrange(shape_order,7478,7551) replace shape_order = shape_order - 6839 if _ID == 34 & shape_order > 638 // Sort Crimea data next to Ukraine data: sort _ID, stable // Delete "Russian border" separating Ukraine and Crimea: drop if _ID==34 & inrange(shape_order,639,654) drop if _ID==34 & inrange(shape_order,37,50) replace shape_order = shape_order + 1000 if _ID==34 & inrange(shape_order,655,712) replace shape_order = shape_order + 44 if _ID==34 & inrange(shape_order,51,638) replace shape_order = shape_order - 1618 if _ID==34 & inrange(shape_order,1655,1712) sort shape_order in 10687/11368 save "countries_shp.dta", replace
Comment