Learn R Programming

ggplot2 (version 0.9.0)

fortify.sp: Fortify method for classes from the sp package.

Description

To figure out the correct variable name for region, inspect as.data.frame(model).

Arguments

model
SpatialPolygonsDataFrame to convert into a dataframe.
data
not used by this method
region
name of variable used to split up regions
...
not used by this method