A tool for visualizing results of many prediction tests simultaneously. Made during an internship at Lubrizol using Highcharts.js.
View .block
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 | |
height: 800 | |
scrolling: yes |
View README.md
See the related blog post.
View mlb_payroll_wins.r
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
library(ggthemes) | |
library(dplyr) | |
# load payroll and win/loss data | |
df <- read.csv('mlb-standings-and-payroll.csv') | |
# pick out seasons from 1985 on | |
df <- df %>% | |
filter(year >= 1985) %>% | |
select(tm, year, w, g, wins_losses, est_payroll) %>% |
View 0_reuse_code.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |