View source: R/plot_spdsplits.R
plot_spdsplits | R Documentation |
Plot average speed by splits for a single activity
plot_spdsplits(act_data, ...)
## S3 method for class 'list'
plot_spdsplits(
act_data,
stoken,
acts = 1,
id = NULL,
units = "metric",
fill = "darkblue",
...
)
## Default S3 method:
plot_spdsplits(act_data, stoken, units = "metric", fill = "darkblue", ...)
act_data |
an activities list object returned by |
... |
arguments passed to other methods |
stoken |
A |
acts |
numeric indicating which activity to plot based on index in the activities list, defaults to most recent |
id |
optional character vector to specify the id(s) of the activity/activities to plot, |
units |
chr string indicating plot units as either metric or imperial |
fill |
chr string of fill color for profile |
The average speed per split is plotted, including a dashed line for the overall average. The final split is typically not a complete km or mile.
plot of average distance for each split value in the activity
Marcus Beck
## Not run:
# get my activities
stoken <- httr::config(token = strava_oauth(app_name, app_client_id, app_secret, cache = TRUE))
my_acts <- get_activity_list(stoken)
# default
plot_spdsplits(my_acts, stoken, acts = 1)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.