Skip to content

Instantly share code, notes, and snippets.

Avatar

James Curley jalapic

View GitHub Profile
@bhoung
bhoung / trueskill_ex2.r
Last active Sep 30, 2021
Example 2. Running trueskill algorithm on a tennis tournament.
View trueskill_ex2.r
# This second example runs Trueskill on a tennis tournament, the Australian Open.
# Note that actual computation is commented out as it takes about ~40 seconds to
# update skill ratings over 127 matches.
library(trueskill)
# Data format of ausopen2012 is: Player, Opponent, Margin, Round, WRank, LRank
data("ausopen2012")
# create match_id in order to reshape
@nowherenearithaca
nowherenearithaca / README.md
Last active Apr 11, 2016
Making a Heat Map Legend with D3 - a Simple Example
View README.md

This is an example of creating what could be a legend for a heat map, demonstrating the simple use of a data-driven linear gradient with D3.

@yannabraham
yannabraham / beanplots.R
Created Jul 16, 2012
ggplot2 BeanPlots
View beanplots.R
## reproduce the figures from http://www.jstatsoft.org/v28/c01/paper using ggplot2
library(ggplot2)
## parameters
set.seed(2710)
## Figure 1
d <- rnorm(50)