powered by
nodiv
Takes a shapefile, e.g. as points or polygons, and adds it to the data object
add_shape(distrib_data, shape)
Returns the object with the new shapefile
An object of type distrib_data, nodiv_data or nodiv_result
distrib_data
nodiv_data
nodiv_result
A GIS shapefile, from e.g. packages maptools or rgdal
maptools
rgdal
Michael Krabbe Borregaard
# remove the shapefile from coquettes data(coquettes) sh <- coquettes$shape coquettes$shape <- NULL # and add it back in coquettes <- add_shape(coquettes, sh)
Run the code above in your browser using DataLab