Description Usage Arguments Value Examples
A function to generate stylish plots that rapidly give an overview of your running.
1 2 3 4 5 6 |
date_from |
a date processed by as.Date e.g as.Date("2020-03-18"). This is a cut-off data for your analysis. Everything after this will be included in the analysis. |
plot |
can be one of "runs_per_loc_per_dist", "distance_per_location", "mean_pace", "pca_plot", and "total_runs" |
target_time |
a pace in the form "7:30" (character variable) with "minutes:seconds" that is one previously achieved that you wish to mark on your plots, OR it could be a target pace you have set yourself |
output |
from the processGarminRunning function |
plot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #let's process my data so that it's good for R, and tidy for plotting
my_runs <- processGarminRunning(data=garmin)
#What about my pace - calculate my mean avg.pace amongst all my runs per location
overview_all_runs(my_runs,
date_from = as.Date("2020-03-18"),
plot = "mean_pace",
target_time = "7:18")
#Note the 5-10 mile runs the pace is slightly faster in manchester than in Bromsgrove probably because of the hills!
# we can also utilise numeric data to do PCA analysis - what are the major sources of variation in our running data?
overview_all_runs(my_runs,
date_from = as.Date("2020-03-18"),
plot = "pca_plot",
target_time = "7:18")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.