read.fortify | R Documentation |
Reads a polygon shapefile and fortifies it for ggplot
read.fortify(filepath, epsg = 4326, return.read = F)
filepath |
a character string. Filepath to the shapefile |
epsg |
an integer. The EPSG of the output |
return.read |
a boolean. Should the shapefile also be returned as read |
Either a list (if return.read=T) with the shapefile and the fortified data frame. or just the fortified data frame.
X_UTM30 <- read.fortify("Temp/Shapefile.shp",epsg=32630,return.read=T)
X_WGS84 <- read.fortify("Temp/Shapefile.shp",epsg=4326,return.read=F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.