Skip to content

Instantly share code, notes, and snippets.

@josecarlosgonz
josecarlosgonz / .gitignore
Created June 4, 2014 17:55 — forked from octocat/.gitignore
Gist to gitignore files
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@josecarlosgonz
josecarlosgonz / README.md
Last active August 29, 2015 13:58 — forked from ramnathv/README.md
Homicidios por estado 1997 -2013

This code was orginally posted by Ramnath

The original code starts below:

This is a rewrite of the mapping code used in this post by Diego Valle. It basically replaces all the boilerplate code with the ichoropleth function in rMaps, which wraps it, allowing easier reuse. Please follow the code from the original post to the get the shapefiles, topojson and data. My note will start with the dataset hom.

d1 <- ichoropleth(rate ~ name, data = hom, ncuts = 9, pal = 'YlOrRd', 
  animate = 'year',  map = 'states'
)
@josecarlosgonz
josecarlosgonz / .gitignore
Last active August 29, 2015 13:58 — forked from mbostock/.block
Map of Mexican Municipalities
build
node_modules
.DS_Store