Skip to content

Commit 07a71ea

Browse files
committed
Fix fortify-spatial namespace issue (#879)
Fixes fortify error when sp namespace is not loaded. #879
1 parent f15fb6f commit 07a71ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/fortify-spatial.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fortify.SpatialPolygonsDataFrame <- function(model, data, region = NULL, ...) {
2727
coords <- ldply(model@polygons,fortify)
2828
message("Regions defined for each Polygons")
2929
} else {
30-
cp <- polygons(model)
30+
cp <- sp::polygons(model)
3131
try_require("maptools")
3232

3333
# Union together all polygons that make up a region

0 commit comments

Comments
 (0)