View source: R/gisco-get-coastal-lines.R
| gisco_get_coastal_lines | R Documentation |
Downloads worldwide coastlines.
gisco_get_coastal_lines(
year = 2016,
epsg = 4326,
cache = TRUE,
update_cache = FALSE,
cache_dir = NULL,
verbose = FALSE,
resolution = 20,
ext = "gpkg"
)
year |
character string or number. Release year of the file. One of \Sexpr[stage=render,results=rd]{giscoR:::db_values("coastal_lines", "year",TRUE)}. |
epsg |
character string or number. Projection of the map: 4-digit EPSG code. One of:
|
cache |
logical. Whether to do caching. Default is |
update_cache |
logical. Should the cached file be refreshed?. Default
is |
cache_dir |
character string. A path to a cache directory. See
Caching strategies section in |
verbose |
logical. If |
resolution |
character string or number. Resolution of the geospatial data. One of:
|
ext |
character. Extension of the file (default |
A sf object.
Please check the download and usage provisions on gisco_attributions().
https://gisco-services.ec.europa.eu/distribution/v2/.
Copyright: https://ec.europa.eu/eurostat/web/gisco/geodata/statistical-units.
gisco_coastal_lines.
See gisco_bulk_download() to perform a bulk download of datasets.
Other statistical units datasets:
gisco_get_census(),
gisco_get_lau(),
gisco_get_nuts(),
gisco_get_urban_audit()
coast <- gisco_get_coastal_lines()
library(ggplot2)
ggplot(coast) +
geom_sf(color = "#1278AB", fill = "#FDFBEA") +
# Zoom on Mediterranean Sea
coord_sf(
xlim = c(-4, 35),
ylim = c(31, 45)
) +
theme_minimal() +
theme(
panel.background = element_rect(fill = "#C7E7FB", color = NA),
panel.border = element_rect(colour = "black", fill = NA)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.