Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (40 sloc) 1.247 kb
\title{Fortify method for classes from the sp package.}
\method{fortify}{SpatialPolygonsDataFrame} (model, data,
region = NULL, ...)
\method{fortify}{SpatialPolygons} (model, data, ...)
\method{fortify}{Polygons} (model, data, ...)
\method{fortify}{Polygon} (model, data, ...)
\method{fortify}{SpatialLinesDataFrame} (model, data,
\method{fortify}{Lines} (model, data, ...)
\method{fortify}{Line} (model, data, ...)
\item{model}{\code{SpatialPolygonsDataFrame} to convert
into a dataframe.}
\item{data}{not used by this method}
\item{region}{name of variable used to split up regions}
\item{...}{not used by this method}
To figure out the correct variable name for region,
inspect \code{}.
if (require("maptools")) {
sids <- system.file("shapes/sids.shp", package="maptools")
nc1 <- readShapePoly(sids,
proj4string = CRS("+proj=longlat +datum=NAD27"))
nc1_df <- fortify(nc1)
Jump to Line
Something went wrong with that request. Please try again.