Description Usage Arguments Value Examples
This function performs several tasks to produce a layered map of routes. A map, centered on the median lat/lon (most common location in the filtered data) at the requested zoom level is obtained from Google Maps via the maps API. Routes are then added one by one in distinct colours.
1 2 | plot_ggplot(routes_all, filterType = NULL, trackPal = rainbow(7),
center = NULL, zoom = 13)
|
routes_all |
loaded and processed routes |
filterType |
classification of routes to filter by (must be an existing type in the routes) |
trackPal |
RColorBrewer palette name |
center |
where to center the map. Defaults to the median lat/lon from the filtered data. |
zoom |
zoom level (1:20; smaller number is tighter zoom) |
NULL (plots a ggplot map)
1 | ## Not run: plot_ggplot(routes, filterType="Walking", trackPal=rainbow(8), zoom=14)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.