Easy Access to Maps for Spatial WorkInstead of searching the internet for a shapefile for a state or country that you are wanting to work on you can use the package maps. The package maps contains the outline for US cities, US counties, states, and countries. You first need to install the maps package. There are numerous parts to this package. Here’s an example:
First we’ll start with a Michigan outline.
If you’re looking for an outline of the USA, you can do this:
Remember, you can always fill the object in with a color using col= If you wanted to have the whole country with the states also you can use:
These are just a few of the maps you can easily get using this package.
0 Comments
Leave a Reply. |
Spatial Ecology @ MSUClick on "Category" below to search for R code compiled by the Zarnetske Spatial & Community Ecology Lab and students in MSU's Spatial Ecology graduate course (FOR870/FW870) Category
All
Archive
October 2016
|