pace_formatter | R Documentation |
pace_formatter
takes a pace duration and returns a formatted string.
pace_formatter(pace)
pace |
A lubridate duration, returned by |
This is most useful when plotting pace as one of the axes in a graph; rather than having the "number of seconds" as the axis value, this method can convert that to a more readable format.
Most commonly, using something like
ggplot2::scale_y_reverse(label = pace_formatter)
will ensure the y-axis
goes from "slowest" to "fastest", and shows paces like "8:30" rather than
"510"
A formatted string representing the pace.
pace_formatter(lubridate::dseconds(380))
pace_formatter(lubridate::dseconds(510))
pace_formatter(lubridate::dseconds(680))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.