| 1 |
open states.dbf --quiet --frompk=geoplot |
| 2 |
join statepop.gdt population --ikey=STATE_FIPS --okey=FIPS |
| 3 |
|
| 4 |
# cut out Hawaii and Alaska? |
| 5 |
smpl STATE_ABBR != "AK" && STATE_ABBR != "HI" --restrict |
| 6 |
print -o STATE_NAME population |
| 7 |
|
| 8 |
bundle options = null |
| 9 |
options.plotfile = "us_states_shp.plt" |
| 10 |
options.height = 500 |
| 11 |
|
| 12 |
outlines_only = 1 |
| 13 |
|
| 14 |
if outlines_only |
| 15 |
geoplot(null, options) |
| 16 |
else |
| 17 |
# show population levels in shades of blue |
| 18 |
options.palette = "blues" |
| 19 |
options.title = "US states, population (lower 48)" |
| 20 |
geoplot(population, options) |
| 21 |
endif |
| 22 |
|