2405 search results for "map"

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 »

Rediscovering Formula One Race Battlemaps

January 31, 2015
By
Rediscovering Formula One Race Battlemaps

A couple of days ago, I posted a recipe on the F1DataJunkie blog that described how to calculate track position from laptime data. Using that information, as well as additional derived columns such as the identity of, and time to, the cars immediately ahead of and behind a particular selected driver, both in terms of

Read more »

Turning R into a GIS – Mapping the weather in Germany

January 29, 2015
By
Turning R into a GIS – Mapping the weather in Germany

Nothing has gotten more attention in the visualization world like the map-based insights, or in other words, just plotting on a map different KPIs to allow for a playful discovery experience. I must admit,...

Read more »

Assessing mapdata world coastline

January 27, 2015
By
Assessing mapdata world coastline

Introduction The mapdata R package contains a coastline called worldHires which is contained within a text file with a bit over 2 million lines. Since the coastlineWorldFine dataset in the ocedata package contains about 0.5 million points, I thought I would explore how much better the mapdata coastline might be. Methods First, I wrote the following C file to translate the...

Read more »

Building a choropleth map of Italy using mapIT

January 19, 2015
By
Building a choropleth map of Italy using mapIT

In the R environment, different packages to draw maps a

Read more »

Multivariate analysis of death rate on the map of Europe

January 11, 2015
By
Multivariate analysis of death rate on the map of Europe

Eurostat has information on death rates by cause and NUTS 2 region. I am trying to get this visually displayed on the map. To get there I map all causes to three dimensions via a principal components analysis. These three dimensions are subsequently tr...

Read more »