Skip to content

Instantly share code, notes, and snippets.

View lmullen's full-sized avatar

Lincoln Mullen lmullen

View GitHub Profile
@lmullen
lmullen / README.md
Created December 12, 2014 00:54
D3-carto with Albers USA projection
@lmullen
lmullen / README.md
Last active August 29, 2015 14:11
d3-carto-map with queue.js
@lmullen
lmullen / index.html
Created November 13, 2014 02:27
Interactivity with state
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<link rel="stylesheet" type="text/css" href="styles.css">
<title>D3 tutorial</title>
</head>
<body>
@lmullen
lmullen / index.html
Last active August 29, 2015 14:09
D3 interactivity demo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<link rel="stylesheet" type="text/css" href="styles.css">
<title>D3 tutorial</title>
</head>
<body>
@lmullen
lmullen / 01-dom.js
Created November 5, 2014 23:58
D3 tutorial
console.log("Hello, Clio 3! Everything is awesome!");
var body = d3.select("body");
var myDiv = body.append("div");
myDiv.append("h1").html("Hello");
body.append("h2").html("DOM manipulation");
@lmullen
lmullen / Makefile
Created October 8, 2014 20:27
Mapping slavery starter kit
# A Makefile to re-project and simplify shapefiles.
SIMPLIFY_PERCENTAGE := 2.5
REPROJECTION_CODE := EPSG:4326
SIMPLIFIED := $(patsubst shp/%.shp, shp_out/%.shp, $(wildcard shp/*.shp))
REPROJECTED := $(patsubst shp/%.shp, temp/%.shp, $(wildcard shp/*.shp))
all : $(SIMPLIFIED)
.SECONDARY : $(REPROJECTED)
@lmullen
lmullen / knitr-example.Rmd
Created September 24, 2014 15:18
Sample Knitr document
---
title: "Sample Knitr Document"
author: "Lincoln Mullen"
date: "September 24, 2014"
output: html_document
---
This is an example of how to use Knitr for doing historical data analysis and writing.
Text that is outside the code block is just ordinary text. You can use it to explain what you're doing or to write an article.
@lmullen
lmullen / README.md
Created September 17, 2014 18:23
The very basics of making a plot in R

The very basics of making a plot using ggplot2 in R.

@lmullen
lmullen / index.html
Created September 17, 2014 02:16
Sum and range
<body>
<script src="script.js"></script>
</body>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
</head>
<body>
<script src="assign-groups.js"></script>
</body>
</html>