Skip to content

Commit 200ccbe

Browse files
author
Michael Stepner
committed
Merge branch 'release/v0.70beta2'
2 parents abe06a7 + c838ef2 commit 200ccbe

15 files changed

Lines changed: 272 additions & 34 deletions

map_shapefiles/county1990_maptile.ado

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
*! 31jan2014, Michael Stepner, michaelstepner@gmail.com
1+
*! 6feb2014, Michael Stepner, michaelstepner@gmail.com
22

33
program define _maptile_county1990
44
syntax , [ geofolder(string) ///
55
mergedatabase ///
66
map var(varname) legopt(string) min(string) clbreaks(string) max(string) mapcolors(string) ndfcolor(string) ///
77
savegraph(string) replace resolution(string) map_restriction(string) spopt(string) ///
8-
stateoutline ///
8+
stateoutline(string) ///
99
]
1010

1111
if ("`mergedatabase'"!="") {
@@ -17,7 +17,7 @@ program define _maptile_county1990
1717

1818
if ("`stateoutline'"!="") {
1919
cap confirm file `"`geofolder'/state_coords_clean.dta"'
20-
if (_rc==0) local polygon polygon(data(`"`geofolder'/state_coords_clean"') ocolor(black) osize(thin ...))
20+
if (_rc==0) local polygon polygon(data(`"`geofolder'/state_coords_clean"') ocolor(black) osize(`stateoutline' ...))
2121
else if (_rc==601) {
2222
di as error `"stateoutline option requires 'state_coords_clean.dta' in the geofolder"'
2323
exit 198
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{smcl}
2+
3+
{pstd}
4+
{hi:maptile {hline 2} Geography: county1990}
5+
6+
7+
{marker description}{...}
8+
{title:Description}
9+
10+
{pstd}
11+
{hi:county1990} generates a map of United States counties using 1990 boundaries.
12+
13+
{pstd}It displays Alaska and Hawaii rescaled and moved to the bottom left of the map, below the continental US, for ease of viewing.
14+
15+
16+
{marker idvar}{...}
17+
{title:Geographic ID variable}
18+
19+
{pstd}
20+
{hi:county} {hline 2} FIPS county codes
21+
22+
23+
{marker geooptions}{...}
24+
{title:Geography-Specific Options}
25+
26+
{synoptset 32 tabbed}{...}
27+
{synopt :{opth stateoutline(linewidthstyle)}}overlays the map with a (potentially thicker) line on state boundaries{p_end}
28+
29+
30+
{marker author}{...}
31+
{title:Author}
32+
33+
{pstd}Michael Stepner{p_end}
34+
{pstd}stepner@mit.edu{p_end}

map_shapefiles/cz_maptile.ado

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
*! 31jan2014, Michael Stepner, michaelstepner@gmail.com
1+
*! 6feb2014, Michael Stepner, michaelstepner@gmail.com
22

33
program define _maptile_cz
44
syntax , [ geofolder(string) ///
55
mergedatabase ///
66
map var(varname) legopt(string) min(string) clbreaks(string) max(string) mapcolors(string) ndfcolor(string) ///
77
savegraph(string) replace resolution(string) map_restriction(string) spopt(string) ///
8-
stateoutline ///
8+
stateoutline(string) ///
99
]
1010

1111
if ("`mergedatabase'"!="") {
@@ -17,7 +17,7 @@ program define _maptile_cz
1717

1818
if ("`stateoutline'"!="") {
1919
cap confirm file `"`geofolder'/state_coords_clean.dta"'
20-
if (_rc==0) local polygon polygon(data(`"`geofolder'/state_coords_clean"') ocolor(black) osize(thin ...))
20+
if (_rc==0) local polygon polygon(data(`"`geofolder'/state_coords_clean"') ocolor(black) osize(`stateoutline' ...))
2121
else if (_rc==601) {
2222
di as error `"stateoutline option requires 'state_coords_clean.dta' in the geofolder"'
2323
exit 198

map_shapefiles/cz_maptile.smcl

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{smcl}
2+
3+
{pstd}
4+
{hi:maptile {hline 2} Geography: cz}
5+
6+
7+
{marker description}{...}
8+
{title:Description}
9+
10+
{pstd}
11+
{hi:cz} generates a map of United States 1990 Commuting Zones.
12+
13+
{pstd}It displays Alaska and Hawaii rescaled and moved to the bottom left of the map, below the continental US, for ease of viewing.
14+
15+
16+
{marker idvar}{...}
17+
{title:Geographic ID variable}
18+
19+
{pstd}
20+
{hi:cz} {hline 2} 1990 Commuting Zone codes
21+
22+
23+
{marker geooptions}{...}
24+
{title:Geography-Specific Options}
25+
26+
{synoptset 32 tabbed}{...}
27+
{synopt :{opth stateoutline(linewidthstyle)}}overlays the map with a (potentially thicker) line on state boundaries{p_end}
28+
29+
30+
{marker author}{...}
31+
{title:Author}
32+
33+
{pstd}Michael Stepner{p_end}
34+
{pstd}stepner@mit.edu{p_end}

map_shapefiles/state_maptile.ado

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*! 31jan2014, Michael Stepner, michaelstepner@gmail.com
1+
*! 6feb2014, Michael Stepner, michaelstepner@gmail.com
22

33
program define _maptile_state
44
syntax , [ geofolder(string) ///

map_shapefiles/state_maptile.smcl

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{smcl}
2+
3+
{pstd}
4+
{hi:maptile {hline 2} Geography: state}
5+
6+
7+
{marker description}{...}
8+
{title:Description}
9+
10+
{pstd}
11+
{hi:state} generates a map of U.S. states.
12+
13+
{pstd}It displays Alaska and Hawaii rescaled and moved to the bottom left of the map, below the continental US, for ease of viewing.
14+
15+
16+
{marker idvar}{...}
17+
{title:Geographic ID variables}
18+
19+
{synoptset 12 tabbed}{...}
20+
{synopt :{hi:state}} 2-letter state abbreviations{p_end}
21+
{synopt :{hi:statefips}} 2-digit state FIPS codes{p_end}
22+
{synopt :{hi:statename}} unabbreviated state names{p_end}
23+
24+
25+
{marker geooptions}{...}
26+
{title:Geography-Specific Options}
27+
28+
{synoptset 22 tabbed}{...}
29+
{synopt :{opth geoid(varname)}}specifies the geographic ID variable to use; default is {hi:geoid(state)}{p_end}
30+
31+
32+
{marker author}{...}
33+
{title:Author}
34+
35+
{pstd}Michael Stepner{p_end}
36+
{pstd}stepner@mit.edu{p_end}

map_shapefiles/zip3_maptile.ado

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
*! 31jan2014, Michael Stepner, michaelstepner@gmail.com
1+
*! 6feb2014, Michael Stepner, michaelstepner@gmail.com
22

33
program define _maptile_zip3
44
syntax , [ geofolder(string) ///
55
mergedatabase ///
66
map var(varname) legopt(string) min(string) clbreaks(string) max(string) mapcolors(string) ndfcolor(string) ///
77
savegraph(string) replace resolution(string) map_restriction(string) spopt(string) ///
8-
stateoutline ///
8+
stateoutline(string) ///
99
]
1010

1111
if ("`mergedatabase'"!="") {
@@ -17,7 +17,7 @@ program define _maptile_zip3
1717

1818
if ("`stateoutline'"!="") {
1919
cap confirm file `"`geofolder'/state_coords_clean.dta"'
20-
if (_rc==0) local polygon polygon(data(`"`geofolder'/state_coords_clean"') ocolor(black) osize(thin ...))
20+
if (_rc==0) local polygon polygon(data(`"`geofolder'/state_coords_clean"') ocolor(black) osize(`stateoutline' ...))
2121
else if (_rc==601) {
2222
di as error `"stateoutline option requires 'state_coords_clean.dta' in the geofolder"'
2323
exit 198

map_shapefiles/zip3_maptile.smcl

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{smcl}
2+
3+
{pstd}
4+
{hi:maptile {hline 2} Geography: zip3}
5+
6+
7+
{marker description}{...}
8+
{title:Description}
9+
10+
{pstd}
11+
{hi:zip3} generates a map of United States 3-digit ZIP Code Tabulation Areas (ZCTAs), using the Census 2000 definition.
12+
13+
{pstd}It displays Alaska and Hawaii rescaled and moved to the bottom left of the map, below the continental US, for ease of viewing.
14+
15+
{pstd}
16+
For information on how ZCTAs are different from ZIP codes, see the U.S. Census Bureau's {browse "http://www.census.gov/geo/reference/zctas.html":information page} and {browse "http://www.census.gov/geo/reference/zctafaq.html":FAQ}.
17+
18+
{marker idvar}{...}
19+
{title:Geographic ID variable}
20+
21+
{pstd}
22+
{hi:zip3} {hline 2} the first 3-digits of a ZIP code
23+
24+
25+
{marker geooptions}{...}
26+
{title:Geography-Specific Options}
27+
28+
{synoptset 32 tabbed}{...}
29+
{synopt :{opth stateoutline(linewidthstyle)}}overlays the map with a (potentially thicker) line on state boundaries{p_end}
30+
31+
32+
{marker author}{...}
33+
{title:Author}
34+
35+
{pstd}Michael Stepner{p_end}
36+
{pstd}stepner@mit.edu{p_end}

map_shapefiles/zip5_maptile.ado

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
*! 31jan2014, Michael Stepner, michaelstepner@gmail.com
1+
*! 6feb2014, Michael Stepner, michaelstepner@gmail.com
22

33
program define _maptile_zip5
44
syntax , [ geofolder(string) ///
55
mergedatabase ///
66
map var(varname) legopt(string) min(string) clbreaks(string) max(string) mapcolors(string) ndfcolor(string) ///
77
savegraph(string) replace resolution(string) map_restriction(string) spopt(string) ///
8-
stateoutline ///
8+
stateoutline(string) ///
99
]
1010

1111
if ("`mergedatabase'"!="") {
@@ -17,7 +17,7 @@ program define _maptile_zip5
1717

1818
if ("`stateoutline'"!="") {
1919
cap confirm file `"`geofolder'/state_coords_clean.dta"'
20-
if (_rc==0) local polygon polygon(data(`"`geofolder'/state_coords_clean"') ocolor(black) osize(thin ...))
20+
if (_rc==0) local polygon polygon(data(`"`geofolder'/state_coords_clean"') ocolor(black) osize(`stateoutline' ...))
2121
else if (_rc==601) {
2222
di as error `"stateoutline option requires 'state_coords_clean.dta' in the geofolder"'
2323
exit 198

map_shapefiles/zip5_maptile.smcl

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{smcl}
2+
3+
{pstd}
4+
{hi:maptile {hline 2} Geography: zip5}
5+
6+
7+
{marker description}{...}
8+
{title:Description}
9+
10+
{pstd}
11+
{hi:zip5} generates a map of United States 5-digit ZIP Code Tabulation Areas (ZCTAs), using the Census 2000 definition.
12+
13+
{pstd}It displays Alaska and Hawaii rescaled and moved to the bottom left of the map, below the continental US, for ease of viewing.
14+
15+
{pstd}
16+
For information on how ZCTAs are different from ZIP codes, see the U.S. Census Bureau's {browse "http://www.census.gov/geo/reference/zctas.html":information page} and {browse "http://www.census.gov/geo/reference/zctafaq.html":FAQ}.
17+
18+
{marker idvar}{...}
19+
{title:Geographic ID variable}
20+
21+
{pstd}
22+
{hi:zip5} {hline 2} 5-digit ZIP code
23+
24+
25+
{marker geooptions}{...}
26+
{title:Geography-Specific Options}
27+
28+
{synoptset 32 tabbed}{...}
29+
{synopt :{opth stateoutline(linewidthstyle)}}overlays the map with a (potentially thicker) line on state boundaries{p_end}
30+
31+
32+
{marker author}{...}
33+
{title:Author}
34+
35+
{pstd}Michael Stepner{p_end}
36+
{pstd}stepner@mit.edu{p_end}

0 commit comments

Comments
 (0)