powered by
as.data.frame(model)
"fortify"(model, data, region = NULL, ...) "fortify"(model, data, ...) "fortify"(model, data, ...) "fortify"(model, data, ...) "fortify"(model, data, ...) "fortify"(model, data, ...) "fortify"(model, data, ...)
SpatialPolygonsDataFrame
if (require("maptools")) { sids <- system.file("shapes/sids.shp", package="maptools") nc1 <- readShapePoly(sids, proj4string = CRS("+proj=longlat +datum=NAD27")) nc1_df <- fortify(nc1) }
Run the code above in your browser using DataLab