Description Usage Arguments Value Examples
A map, centered at the mean of the start and end locations, is accessed via
get_map
and a suitable driving route between these
points is constructed using google_directions
then
added to the map.
1 2 3 |
start_latitude |
Initial latitude. |
start_longitude |
Initial longitude. |
end_latitude |
Final latitude. |
end_longitude |
Final longitude. |
start_address |
Initial address. |
end_address |
Final address. |
key |
Google Maps API key (optional). |
zoom |
Map zoom, an integer from 3 (continent) to 21 (building). |
A ggplot2
graphics object.
1 2 3 4 5 | ## Not run:
route_map(start_address = "37 Beach Road, Mouille Point, Cape Town",
end_address = "100 St Georges Mall, Cape Town City Centre, Cape Town")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.