Skip to content

Instantly share code, notes, and snippets.

Matt Schumwinger MatthewSchumwinger

Block or report user

Report or block MatthewSchumwinger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View README.md

Map the travel patterns of many people to a single destination. Suggested uses:

  • professional conferences and conventions
  • family reunions
  • athletic tournaments

This framework was originally used plot the cross-country travel of 50 relatives to a family reunion. It can be readily applied to professional gatherings – as seen here with speakers attending the 2015 JSGeo conference.

@MatthewSchumwinger
MatthewSchumwinger / gist:8870864
Created Feb 7, 2014
R snippet for color histogram is used in Milwaukee building ages map
View gist:8870864
library(ggplot2)
library(grid)
## create bins for color legend
s.data$YR_BUILT <- as.numeric(s.data$YR_BUILT)
bin1 <- s.data$TAXKEY %in% subset(s.data, YR_BUILT < 1897)$TAXKEY
s.data$bin[bin1] <- "< 1897"
bin2 <- s.data$TAXKEY %in% subset(s.data, YR_BUILT >= 1897 & YR_BUILT < 1935)$TAXKEY
s.data$bin[bin2] <- "1897-1935"
bin3 <- s.data$TAXKEY %in% subset(s.data, YR_BUILT >= 1935 & YR_BUILT < 1945)$TAXKEY
You can’t perform that action at this time.