A tool for visualizing results of many prediction tests simultaneously. Made during an internship at Lubrizol using Highcharts.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
license: gpl-3.0 | |
height: 800 | |
scrolling: yes |
See the related blog post.
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) %>% |
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 |