read.fortify: Custom function to read and fortify a polygon

View source: R/read_fortify.R

read.fortifyR Documentation

Custom function to read and fortify a polygon

Description

Reads a polygon shapefile and fortifies it for ggplot

Usage

read.fortify(filepath, epsg = 4326, return.read = F)

Arguments

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

Value

Either a list (if return.read=T) with the shapefile and the fortified data frame. or just the fortified data frame.

Examples

X_UTM30 <- read.fortify("Temp/Shapefile.shp",epsg=32630,return.read=T)
X_WGS84 <- read.fortify("Temp/Shapefile.shp",epsg=4326,return.read=F)

HiDef-Aerial-Surveying/HiDEF documentation built on Nov. 21, 2023, 5:54 a.m.