Description Usage Format Source See Also Examples
a sf
object containing low resolution African continent outline
See data-raw/afrilearndata-creation.R for how the data object is created.
1 |
Formal class 'sf';
name character vector continent name
geometry sfc_MULTIPOLYGON
Geographical coordinates WGS84 datum (CRS EPSG 4326)
https://www.naturalearthdata.com/downloads/110m-cultural-vectors/
https://cran.r-project.org/web/packages/rnaturalearth/
1 2 3 4 5 6 7 8 9 | if (requireNamespace("sf", quietly = TRUE)) {
library(sf)
data(africontinent)
# or
filename <- system.file("extdata","africontinent.shp", package="afrilearndata", mustWork=TRUE)
africontinent <- sf::read_sf(filename)
plot(sf::st_geometry(africontinent))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.