knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
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")
knitr::include_graphics(file.path("man", "figures", "ex_wl_plot.png"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.