knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

iDiagrams

Lifecycle: experimental

Installation

Install dev version with:

remotes::install.github("kismet303/iDiagrams")

Create win-loss diagrams

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"))


kismet303/iDiagrams documentation built on April 10, 2020, 11:26 a.m.