Description Usage Arguments Value Examples
Uses the DiagrammeR package to return a win-loss diagram. Currently only supports exactly 5 rows.
1 | wl_diagram(data, topline)
|
data |
Data frame with columns ‘endpoint', ' ’wins', 'ties', 'losses''. The dataframe should have exactly 5 rows. |
topline |
Character string to be included in the top box. |
grViz object. Refer to DiagrammeR package for details.
1 2 3 4 5 | data <- data.frame(endpoint = c(paste0("endpoint", 1:5)),
wins = c(5,5,5,5,5),
ties = c(50,40,30,20,10),
losses = c(5,5,5,5,5))
wl_diagram(data, topline="N=10*6 = 60")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.