nassouth.blogg.se

How to add a world map to transcad
How to add a world map to transcad












how to add a world map to transcad
  1. #HOW TO ADD A WORLD MAP TO TRANSCAD SOFTWARE#
  2. #HOW TO ADD A WORLD MAP TO TRANSCAD DOWNLOAD#

  • Run this Stata command to convert the shapefile to Stata format:.
  • Unzip ne_50m_admin_0_countries.zip to a folder that is visible to Stata.
  • Ne_50m_admin_0_countries.zip (799 KB, world map with country borders, scale 1:50,000,000)

    #HOW TO ADD A WORLD MAP TO TRANSCAD DOWNLOAD#

    To create the map in Figure 3, download this shapefile from Natural Earth, which has information for 241 countries and territories:.As an alternative to the small scale map in Figures 1 and 2, Natural Earth offers shapefiles with more detail that were designed for larger maps. It contains the borders for 177 countries and territories and does not include smaller geographic units like Hong Kong, Monaco, or St. The shapefile that was used for Figures 1 and 2 was designed for small maps. Please read the Stata help file for spmap to learn about the many additional options for customization of maps.įigure 2: Length of country names (small scale map, blue palette).Darker colors on the map indicate longer country names, ranging from 4 (for example Cuba and Fiji) to 35 characters (French Southern and Antarctic Lands).Spmap length using worldcoor.dta if admin!="Antarctica", id(id) fcolor(Blues) clnumber(5) legend(symy(*2) symx(*2) size(*2)) legorder(lohi) A second map without Antarctica, with a blue palette, five classes, and with a bigger legend with values arranged from low to high (Figure 2) can be drawn with this command:.The default map (Figure 1) is grayscale, it shows Antarctica, there are four classes for the length of the country names, the legend is very small, and the legend values are arranged from high to low.įigure 1: Length of country names (small scale map, default style).Draw a map that indicates the length of all country names with this command:.For the example maps, create a variable with the length of each country's name.The DBF, PRJ, SHP, and SHX files are no longer needed and can be deleted.Please refer to the spmap documentation to learn more about labels.Shp2dta using ne_110m_admin_0_countries, data(worlddata) coor(worldcoor) genid(id) genc(c) If you plan to superimpose labels on a map, for example country names, run the following command instead, which adds centroid coordinates to the file worlddata.dta:.Two new files will be created: worlddata.dta (with the country names and other information) and worldcoor.dta (with the coordinates of the country boundaries).Shp2dta using ne_110m_admin_0_countries, data(worlddata) coor(worldcoor) genid(id) Unzip ne_110m_admin_0_countries.zip to a folder that is visible to Stata, for example the current working directory of Stata.Step 1: Convert shapefile to Stata format Note: The instructions are accurate for Natural Earth maps version 2.0.0, the most recent version of the maps available in April 2014.

    how to add a world map to transcad

    For the maps in Figures 1 and 2, please download this public domain shapefile from Natural Earth:

  • Shapefile: A shapefile is a data format for geographic information systems.
  • how to add a world map to transcad

    shp2dta can be installed in Stata with this command: shp2dta: Stata module for converting shapefiles to Stata format, by Kevin Crow.spmap can be installed in Stata with this command: spmap: Stata module for drawing thematic maps, by Maurizio Pisati.The creation of maps is not supported in older versions of Stata. Users of Stata 8 are referred to the guide from 2005. The instructions below are for Stata version 9 or later. For example, South Sudan, which seceded from Sudan in 2011, is shown as a separate country on the new maps. The article supersedes an earlier version from 2005 and introduces updated maps with current country borders. This guide explains how maps like those with adult and youth literacy rates in 2010 can be created with Stata.

    #HOW TO ADD A WORLD MAP TO TRANSCAD SOFTWARE#

    Most charts and maps on this site were created with the Stata statistical software package.














    How to add a world map to transcad