Description Usage Arguments Details Value Author(s) See Also Examples
Prepare Shape File for Plotting
1 | prepare.shape.fortify(shape)
|
shape |
A shape object as read using maptools. |
Takes in a shape object, fortifies it and joins in it's accompanying data.
A data.frame
suitable for use in
ggplot
.
Jared P. Lander
prepare.shape
1 2 3 4 5 | ## Not run:
nyc <- readShapeSpatial(fn="nyct2010.shp")
nyc.df <- prepare.shape.fortify(nyc)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.