Skip to content

Instantly share code, notes, and snippets.

@mwhitaker
mwhitaker / knit_cloudstorage.rmd
Created January 13, 2017 18:10
Use googleCloudStorageR to automatically upload to Cloud Storage
---
title: "Host image files on Google Cloud storage"
author: "Michael Whitaker"
date: "January 12, 2017"
output:
html_document:
self_contained: false
---
```{r setup, include=FALSE}
license: none
height:
scrolling: no
border: yes
@mwhitaker
mwhitaker / temp.html
Created June 2, 2016 20:28
temp.html
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.pydata.org/bokeh/release/bokeh-0.11.1.min.js"></script>
<link href="https://cdn.pydata.org/bokeh/release/bokeh-0.11.1.min.css" rel="stylesheet">
</head>
<body>
<div id="a73ee825087c4d734028b06bb47bc3e4" class="plotdiv"></div>
<script type="text/javascript">
Bokeh.$(function() {
@mwhitaker
mwhitaker / README.md
Created February 18, 2016 17:07
test
figure() %>% ly_points(1:10)
---
title: "Vignette Title"
author: "Vignette Author"
date: "`r Sys.Date()`"
output:
rmarkdown::html_vignette:
self_contained: FALSE
vignette: >
%\VignetteIndexEntry{Vignette Title}
%\VignetteEngine{knitr::rmarkdown}
@mwhitaker
mwhitaker / README.md
Last active February 3, 2016 17:25
Multi-channel sunbursts

D3 Sunburst visualization that uses the Embed API to pull data from the Google Analytics Multi-Channel Funnel API. This app runs purely in the browser and no data is sent to any server. A bit more info is on my blog.

Any suggestions for improvement would be welome!

<!--this snippet displays cart items -->
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnCaptionBlock"><tbody class="mcnCaptionBlockOuter"><tr><td class="mcnCaptionBlockInner" valign="top" style="padding:9px;"><table border="0" cellpadding="0" cellspacing="0" class="mcnCaptionRightContentOuter" width="100%"><tbody><tr><td valign="top" class="mcnCaptionRightContentInner" style="padding:0 9px ;"><table align="left" border="0" cellpadding="0" cellspacing="0" class="mcnCaptionRightImageContentContainer"><tbody><tr><td class="mcnCaptionRightImageContent" valign="top"><img alt="" src="%RAW_IMG_URL%" width="200" style="max-width:1000px;" class="mcnImage"></td></tr></tbody></table><table class="mcnCaptionRightTextContentContainer" align="right" border="0" cellpadding="0" cellspacing="0" width="264"><tbody><tr><td valign="top" class="mcnTextContent"><a href="%PROD_URL%" style="color: #1155CC;font-family: arial, sans-serif;font-size: 14px;line-height: 21px;" target="_blank">%YNAME%</a></td></tr
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwhitaker
mwhitaker / bella.png
Last active August 29, 2015 14:14
Visualize users with multiple sessions from multiple cities in the US from Google Analytics
bella.png
@mwhitaker
mwhitaker / force.csv
Last active August 29, 2015 14:14
Force-directed graph of website visitors with sessions from multiple US States
source target value
North Carolina Tennessee 136
Virginia District of Columbia 132
North Carolina Georgia 130
District of Columbia Virginia 124
Georgia North Carolina 123
Oklahoma Louisiana 116
Wisconsin Illinois 111
Louisiana Oklahoma 103
Tennessee North Carolina 103