drawPoly(sp=TRUE, col='red', lwd=2, ...)
drawLine(sp=TRUE, col='red', lwd=2, ...)TRUE, the output will be a sp object (SpatialPolygons or SpatialLines). Otherwise a matrix of coordinates is returnedsp==TRUE a SpatialPolygons or SpatialLines object; otherwise a matrix of coordinateslocator