View source: R/UTILITY_FUNCTIONS.R
| polygon_from_extent | R Documentation | 
Turn an extent object into a polygon
polygon_from_extent(x, proj4string = NULL)
x | 
 An object from which an bounding box object can be retrieved.  | 
proj4string | 
 A PROJ.4 formatted string defining the required projection.  | 
A Simple Feature object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.