View source: R/add_map_features.R
get_rivers | R Documentation |
This function allows you to download a river network layer in 'sf' format for
a catchment area of your choice. This can be useful when making many plots of the
same area and saves frequent calls to the OSM server for each plot when using river = TRUE
in the beavertools::terr_plot()
and beavertools::plot_forage_density()
functions.
get_rivers(catchment)
catchment |
An sf object or an sf-readable file of the catchment area or area of interest. See sf::st_drivers() for available drivers. |
## Not run:
# this generates an sf object for the river network of the R. Otter catchment.
rivs <- get_rivers(RivOtter_Catch_Area)
plot(sf::st_geometry(rivs))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.