Given SpatialPolygons* objects x
and y
x+y
This is the same as merge(x, y)
x*y
This is the same as intersect(x, y)
x^y
This is the same as crop(x, y)
x-y
This is the same as erase(x, y)
These functions are based on functions from rgeos, with some added functionality to, among other things, avoid polygon duplication and to keep the attributes.
Robert J. Hijmans
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.