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
# load_packages ----------------------------------------------------------- | |
packages <- | |
c('nbastatR', #devtools::install_github("abresler/nbastatR") | |
'explodingboxplotR', #devtools::install_github("timelyportfolio/explodingboxplotR") | |
'ggplot2', | |
'dplyr', | |
'purrr', | |
'magrittr') |
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
if (!require(quantmod)) { | |
stop("This app requires the quantmod package. To install it, run 'install.packages(\"quantmod\")'.\n") | |
} | |
# Download data for a stock if needed, and return the data | |
require_symbol <- function(symbol, envir = parent.frame()) { | |
if (is.null(envir[[symbol]])) { | |
envir[[symbol]] <- getSymbols(symbol, auto.assign = FALSE) | |
} |
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
1 <html> | |
2 <head> | |
3 <script type="text/javascript" | |
4 src="http://www.google.com/jsapi"> | |
5 </script> | |
6 <script type="text/javascript"> | |
7 google.load('visualization', '1', | |
8 {'packages':['motionchart']}); | |
9 google.setOnLoadCallback(drawChart); | |
10 function drawChart() { |