Skip to content

Instantly share code, notes, and snippets.

View gist:faf8f09c67bcd3d6ccca
{
"metadata": {
"name": "",
"signature": "sha256:57e3953da6a8dc30a7f1354c37962b066401ca7fca37594140131e09720176cc"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View gist:a0dcfb3e783c03a07215
{
"metadata": {
"name": "",
"signature": "sha256:accbf07ab64ce1adbac7177a8bfba0c1021ed33763bd3996723564b3a71e6a37"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View gist:2876259bdff23164576c
{
"metadata": {
"name": "",
"signature": "sha256:15fd2371553953bcf0af1f468b8ba403a3efd0f6e14d36f8fb29441b703324f4"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View gist:c16fff8edd3fc11e6071
{
"metadata": {
"name": "",
"signature": "sha256:351fbe3baacf51974290f71f8bd183e52646887aad2bcba2182c4ced6cdfa1d2"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View gist:c7e0421d87e14eb67800
{
"metadata": {
"name": "",
"signature": "sha256:351fbe3baacf51974290f71f8bd183e52646887aad2bcba2182c4ced6cdfa1d2"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
View gist:209b601f63956fc8aebf
We've paid these famous graphs our sincerest form of compliment: trying to re-make them for the web. This post is inspired by <a href="http://www.edwardtufte.com/tufte/">Edward Tufte</a>. The plots were made with our free online product--you can press "play with this data" and start editing your own copy online. We have <a href="https://plot.ly/learn">tutorials</a> for using our web product and <a href="https://plot.ly/api">APIs</a>; contact us if you're interested in a trial of <a href="https://plot.ly/product/enterprise/">plotly on-premise</a>.
<br>
<br>
<br>
<h3>March on Moscow</h3>
<br>
<br>
<a href="http://www.edwardtufte.com/tufte/minard-obit">Charles Minard</a>'s graph of the March on Moscow shows the dwindling size of Napoleon's army. The broad tan line shows the army's size on the March from Poland to Moscow. The lower, thinner, dark line shows the army's size on the retreat. The width of the lines shows the army size, which started over 400,000 strong and dwindled to 10,000. The bottom lines show t
View gist:7cb54021aeb5aed38555
install.packages("devtools") # so we can install from github
library("devtools")
install_github("ropensci/plotly") # plotly is part of ropensci
library(plotly)
py <- plotly(username="r_user_guide", key="mw5isa4yqp") # open plotly connection
library(ggplot2)
d <- 1:9
prob = log10(1 + (1/d))
View gist:6aef1d4975233fbef1d5
NMDS1 NMDS2 shannon
-0.287555952 -0.129887595 9.516558582
-0.314104852 -0.048655648 8.985087924
-0.214910534 -0.127167065 8.928241917
-0.341295065 -0.296282805 8.315476782
-0.470025718 0.083835083 8.494348157
-0.429386114 0.044064347 8.669813919
-0.427608469 0.124631936 8.15886319
-0.584412991 0.257278736 8.469688185
-0.436526047 -0.070633108 8.496878956
View gist:bd1e603c0139376c4e8b
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@msund
msund / gist:cc530bb04dddb5ab6f61
Last active Aug 29, 2015
Anscombe & Nightingale Code
View gist:cc530bb04dddb5ab6f61
{
"metadata": {
"name": "",
"signature": "sha256:a49b276d3dc34c8822389de0b31860a11013bfd59f6bb3aabd29e9f7df76322c"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [