Install dev version with:
remotes::install.github("kismet303/iDiagrams")
Uses the DiagrammeR package to create win loss diagram.
library(iDiagrams)
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))
diagram <- 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.