View source: R/Methods_for_data_objects.R
add_shape | R Documentation |
nodiv
data object
Takes a shapefile, e.g. as points or polygons, and adds it to the data object
add_shape(distrib_data, shape)
distrib_data |
An object of type |
shape |
A GIS shapefile, from e.g. packages |
Returns the object with the new shapefile
Michael Krabbe Borregaard
distrib_data
# remove the shapefile from coquettes
data(coquettes)
sh <- coquettes$shape
coquettes$shape <- NULL
# and add it back in
coquettes <- add_shape(coquettes, sh)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.