2441 search results for "map"

Simple Lower US 48 Albers Maps & Local (no-API) City/State Geocoding in R

March 15, 2015
By
Simple Lower US 48 Albers Maps & Local (no-API) City/State Geocoding in R

I’ve been seeing an uptick in static US “lower 48″ maps with “meh” projections this year, possibly caused by a flood of new folks resolving to learn R but using pretty old documentation or tutorials. I’ve also been seeing an uptick in folks needing to geocode US city/state to lat/lon. I thought I’d tackle both

Read more »

Extracting Heatmap

March 11, 2015
By

Inspired by this tweet, I wanted to try to do something similar in JavaScript. Very cool hack: Extracting the original data from a heatmap image with R vector ops #rstats http://t.co/Lbi6FCXdrI pic.twitter.com/LCabkMGjXY— Gregory Piatetsky (@kdnugge...

Read more »

NYC Motor Vehicle Collisions – Street-Level Heat Map

March 10, 2015
By
NYC Motor Vehicle Collisions – Street-Level Heat Map

In this post I will extend a previous analysis creating a borough-level heat map of NYC motor vehicle collisions. The data is from NYC Open Data. In particular, I will go from borough-level to street-level collisions. The processing of the code is very similar to the previous analysis, with a few more functions that map streets to colors. … Continue reading...

Read more »

Extracting the original data from a heatmap image

March 4, 2015
By
Extracting the original data from a heatmap image

The paper Analysis of the Linux Kernel Evolution Using Code Clone Coverage analysed 136 versions of Linux (from 1.0 to 2.6.18.3) and calculated the amount of source code that was shared, going forward, between each pair of these versions. When I saw the heatmap at the end of the paper (see below) I knew it

Read more »

Mapping Paris bikes stands

March 3, 2015
By
Mapping Paris bikes stands

A Sharp Sight Labs reader (and now student), Jason P. recently started learning data science. He has a background in data analysis (primarily with Excel and related tools in the Microsoft ecosystem) but he wanted to start learning some of the harder skills of data science. He contacted me after he had diligently reviewed past The post

Read more »

John Snow, and Google Maps

February 27, 2015
By
John Snow, and Google Maps

In my previous post, I discussed how to use OpenStreetMaps (and standard plotting functions of R) to visualize John Snow’s dataset. But it is also possible to use Google Maps (and ggplot2 types of graphs). library(ggmap) get_london <- get_map(c(-.137,51.513), zoom=17) london <- ggmap(get_london) Again, the tricky part comes from the fact that the coordinate representation system, here, is not...

Read more »

John Snow, and OpenStreetMap

February 27, 2015
By
John Snow, and OpenStreetMap

While I was working for a training on data visualization, I wanted to get a nice visual for John Snow’s cholera dataset. This dataset can actually be found in a great package of famous historical datasets. library(HistData) data(Snow.deaths) data(Snow.streets) One can easily visualize the deaths, on a simplified map, with the streets (here simple grey segments, see Vincent Arel-Bundock’s...

Read more »

Making Maps in R with Ryan Peek and Michele Tobias

February 20, 2015
By

Today, Ryan Peek and Michele Tobias gave an introduction to making maps in R. Here’s the webcast: (Pardon the little scuffle at the beginning and as we switched computers halfway through. Still getting the hang of hangouts.) Resources: Download all of Ryan’s code and HTML files here. See Michele’s slides on Slideshare here. Code for Michele’s example maps...

Read more »

Mapping the world with tweets (including a GIF without cats and a Shiny App).

February 16, 2015
By
Mapping the world with tweets (including a GIF without cats and a Shiny App).

A few days ago, I collected 30 minutes of tweets all around the world. I used the twitteR and streamR packages for this. The nice thing about those tweets is that they have geo-information associated with them. Not all of them, of course, but more than...

Read more »

The leaflet package for online mapping in R

January 31, 2015
By
The leaflet package for online mapping in R

It has been possible for some years to launch a web map from within R. A number of packages for doing this are available, including: RgoogleMaps, an interface to the Google Maps api leafletR, an early package for creating Leaflet maps with R rCharts, which can be used as a basis for webmaps In this tutorial we use...

Read more »