Description Usage Arguments Value Integration into ggplot2 Examples
Visualize a run/hike temporal elevation.
1 2 | run2elev(data = alpine_skiing, color = "black", smooth = TRUE,
smoothfactor = 1, smoothcolor = "red")
|
data |
A run data frame returned by |
color |
The color to draw the movement line in. |
smooth |
Logical T/F whether to add a smooth function. |
smoothfactor |
Loess smoothing factor |
smoothcolor |
Color to draw the smoothline in. |
A ggplot object.
You can simply add to a plot created by run2elev
by using the usual ggplot2
-syntax.
1 2 3 4 5 6 7 8 9 10 11 12 13 | data("alpine_skiing")
run2elev(data = alpine_skiing)
run2elev(data = alpine_skiing,
color = "black",
smooth = TRUE,
smoothfactor = 0.3,
smoothcolor = "red")
run2elev(data = alpine_skiing) +
geom_hline(yintercept = mean(alpine_skiing$ele,na.rm = TRUE),
color = "green")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.