addons/geoplot/examples/us.inp
raw| 1 | open us-states.geojson --quiet --frompkg=geoplot |
| 2 | x = normal() # fake up some data! |
| 3 | opts = _(plotfile = "us0.plt", palette = "blues") |
| 4 | |
| 5 | # show the entire USA |
| 6 | opts.title = "USA (complete)" |
| 7 | geoplot(x, opts) |
| 8 | |
| 9 | # skip Alaska and Hawaii |
| 10 | smpl postal != "AK" && postal != "HI" --restrict |
| 11 | opts.title = "USA (mainland)" |
| 12 | opts.plotfile = "us1.plt" |
| 13 | geoplot(x, opts) |
| 14 |