autoplot.sf | R Documentation |
autoplot.sf
creates a map of shapefiles downloaded using getShp.
## S3 method for class 'sf'
autoplot(object, ..., map_title = NULL, facet = FALSE, printed = TRUE)
object |
A sf object downloaded using |
... |
Other arguments passed to specific methods |
map_title |
Custom title used for the plot. |
facet |
If TRUE, splits map into a separate facet for each administrative level. |
printed |
Should the plot print to graphics device. |
autoplot.sf
returns a map of the supplied sf object
## Not run:
MDG_shp <- getShp(ISO = "MDG", admin_level = "admin0")
autoplot(MDG_shp)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.