Description Usage Arguments Value Examples
This is a convenience function that takes the output of valhallr::isochrone()
and generates either a static or interactive map.
1 | map_isochrone(isochrone, method = "leaflet")
|
isochrone |
An isochrone sf object generated by |
method |
The method used to map it. Two methods are supported:
|
A plot of the isochrones, either a a leaflet object or a ggplot object.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
library(valhallr)
# set up our departure point: the University of Ottawa
from <- test_data("uottawa")
# generate a set of isochrones for travel by bicycle
i <- valhallr::isochrone(from, costing = "bicycle")
# map the isochrones
map_isochrone(i)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.