map_isochrone {valhallr}R Documentation

Generate maps of isochrones

Description

This is a convenience function that takes the output of valhallr::isochrone() and generates either a static or interactive map.

Usage

map_isochrone(isochrone, method = "leaflet")

Arguments

isochrone

An isochrone sf object generated by valhallr::isochrone().

method

The method used to map it. Two methods are supported:

  • "leaflet" produces an interactive HTML map using the Leaflet package.

  • "ggplot" produces a static map.

Value

A plot of the isochrones, either a a leaflet object or a ggplot object.

Examples

## 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)

[Package valhallr version 0.1.0 Index]