Description Usage Arguments Examples
View source: R/distance_plot.R
Various slope graphs for distance race splits.
1 2 3 4 5 6 7 |
data |
data.frame, as returned by |
type |
character; one of "rank", "time" or "percent"; controls whether the y axis is split rank, split time back or split percent back. Note that both "time" and "percent" will usually lead to a fair amount of overplotting of the athlete names due to space constraints. |
nation_col |
character vector; if specified, highlight athletes from
these nations. Use the three letter codes, all caps. e.g.
|
name_col |
character vector; if specified, highlight these. Must spell
out each athlete's full name as it appears in |
offset.x |
numeric; amount to slide the names to the left/right |
1 2 3 4 5 6 7 8 | ## Not run:
require(ggplot2)
dst <- parse_dst_pdf(file = system.file("example_pdfs/dst_example1.pdf",
package = "fispdfparsr"))
p <- dst_split_plot(data = dst,type = "percent",nation_col = c("USA","CAN"))
print(p)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.