View source: R/trackeRdata_plot.R
plot_route | R Documentation |
Plot the route ran/cycled during training onto a background map. Internet connection is required to download the background map.
plot_route(
x,
session = 1,
zoom = NULL,
speed = TRUE,
threshold = TRUE,
mfrow = NULL,
maptype = "stamen_terrain",
messaging = FALSE,
...
)
plotRoute(
x,
session = 1,
zoom = NULL,
speed = TRUE,
threshold = TRUE,
mfrow = NULL,
maptype = "stamen_terrain",
messaging = FALSE,
...
)
x |
A object of class |
session |
A numeric vector of the sessions to be plotted. Defaults
to the first session, all sessions can be plotted by |
zoom |
The zoom level for the background map as passed on to
|
speed |
Logical. Should the trace be coloured according to speed? |
threshold |
Logical. Should thresholds be applied? |
mfrow |
A vector of 2 elements, number of rows and number of columns, specifying the layout for multiple sessions. |
maptype |
Passed to |
messaging |
Passed to |
... |
Additional arguments passed on to |
plot_route()
requires a a Stadia Maps API key. See register_stadiamaps
for details.
get_stadiamap
, ggmap
## Not run:
data('runs', package = 'trackeR')
plot_route(runs, session = 4, zoom = 13)
plot_route(runs, session = 4, zoom = 13, maptype = "outdoors")
## multiple sessions
plot_route(runs, session = c(1:4, 8:11))
## different zoom level per panel
plot_route(runs, session = 6:7, zoom = c(13, 14))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.