reky | R Documentation |
Function returning data frame of rivers of the Czech Republic as sf
lines. It takes a single parameter scope
with default "global".
reky(scope = "global", resolution = "high")
scope |
Should the function return all rivers, or just Vltava in Prague / Svitava & Svratka in Brno? |
resolution |
Should the function return high or low resolution shapefile? Allowed values are "high" (default) and "low". This parameter affects only the geometry column, all other fields remain the same. |
Two special case scopes are defined: Praha (returning the part of Vltava in and around Prague) and Brno (returning Svitava and Svratka near and around Brno).
Due to package size constraints the data are stored externally (and a working internet connection is required to use the package).
The data is current to January 2021. Downloaded size is 4.4 MB.
sf
data frame with 3.617 rows of 4 variables + geometry:
Type of river
Name, with Czech accents
Boolean indicating navigability of river.
Boolean indicating one of the major rivers.
Mapový podklad – Data200, 2021 © Český úřad zeměměřický a katastrální. https://cuzk.gov.cz>
library(sf)
plot(st_geometry(subset(okresy(), KOD_LAU1 == "CZ0642"))) # Brno city
plot(reky("Brno"), add = TRUE) # Svitava & Svratka added to Brno my city plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.