plot_ggplot: Plot Runkeeper(TM) route data using ggplot2

Description Usage Arguments Value Examples

View source: R/plot_ggplot.R

Description

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.

Usage

1
2
plot_ggplot(routes_all, filterType = NULL, trackPal = rainbow(7),
  center = NULL, zoom = 13)

Arguments

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)

Value

NULL (plots a ggplot map)

Examples

1
## Not run: plot_ggplot(routes, filterType="Walking", trackPal=rainbow(8), zoom=14)

jonocarroll/runkeepR documentation built on Feb. 9, 2022, 3:04 a.m.