Built with blockbuilder.org
d3.js Exploding Boxplots from d3_exploding_boxplot in
htmlwidget form for R
# get newest htmlwidgets
devtools::install_github("ramnathv/htmlwidgets")
| library(magrittr) | |
| library(dplyr) | |
| library(nycflights13) | |
| library(evaluate) | |
| library(ggplot2) | |
| # Define the plot | |
| makeplot <- function(mydata){ | |
| date <- as.Date(paste("2013", mydata[1,"month"], mydata[1,"day"], sep="-")) | |
| ggplot(mydata, aes(distance, arr_delay)) + |
| #look at steps in constructing a horizon plot version | |
| #of http://www.mebanefaber.com/timing-model/ | |
| #do horizon of percent above or below 10 month / 200 day moving average | |
| require(lattice) | |
| require(latticeExtra) | |
| require(quantmod) | |
| #since we are focused on the horizon plot, let's just look at one stock |
Built with blockbuilder.org
d3.js Exploding Boxplots from d3_exploding_boxplot in
htmlwidget form for R
# get newest htmlwidgets
devtools::install_github("ramnathv/htmlwidgets")
| library(rgdal) | |
| library(rgeos) | |
| library(ggplot2) | |
| library(readr) | |
| library(tidyr) | |
| library(dplyr) | |
| library(grid) | |
| us <- readOGR("us_states_hexgrid.geojson", "OGRGeoJSON") |
| require(quantmod) | |
| require(ggplot2) | |
| require(reshape2) | |
| require(plyr) | |
| require(scales) | |
| # Download some Data, e.g. the CBOE VIX | |
| getSymbols("^VIX",src="yahoo") | |
| # Make a dataframe |
| <?php | |
| /* | |
| One wp-config for local development to staging to production. | |
| */ | |
| // Define Environments | |
| $environments = array( |
| /* | |
| * script to export data in all sheets in the current spreadsheet as individual csv files | |
| * files will be named according to the name of the sheet | |
| * author: Michael Derazon | |
| */ | |
| function onOpen() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var csvMenuEntries = [{name: "export as csv files", functionName: "saveAsCSV"}]; | |
| ss.addMenu("csv", csvMenuEntries); |
| <div class='line-through'> | |
| <h1>Branchy</h1> | |
| </div> | |
| <a href='#'>About</a> | |
| <a href='#'>Contribute</a> | |
| <a href='#'>Archives</a> | |
| <div class='line-through' style='margin-top:10em;'> |