# 3065 search results for "map"

## Mapping with ggplot: Create a nice choropleth map in R

October 27, 2015
By

I was working on making a map in R recently and after an extensive search online, I found a hundred different ways to do it and yet each way didn't work quite right for my data and what I wanted to do. Eventually, I found a way to make it work after p...

## How to Change the Reference Map in Choroplethr

October 8, 2015
By

Last week I released an update to choroplethr that lets you combine choropleth maps with reference maps. Since that post many people have asked if it’s possible to change the reference map that choroplethr uses. The answer is yes, but it requires some code. Here is the same choropleth (New York City ZIP Code Income) with three The post

## Replicating NatGeo’s “Proper” Earthquake Map in R

October 4, 2015
By

I saw this post over at NatGeo over the weekend and felt compelled to replicate this: with ggplot2. Three shapefiles later and we have it close enough to toss into a post (and I really don’t believe the continent names are necessary). library(rgdal) library(ggplot2) library(ggthemes)   # grab these from http://rud.is/dl/quakefile.tgz   world <- readOGR("countries.geo.json",

## rleafmap: R Markdown in interactive popups

October 1, 2015
By

This is the second « big » feature coming with branch 0.2 of rleafmap (now on CRAN!). With this new version you can write popups content in R Markdown which will be processed when you generate the map. This can be useful … Lire la suite →

## Combining Choropleth Maps and Reference Maps in R

September 30, 2015
By

Recent updates to my mapping packages now make it easy to combine choropleth maps and reference maps in R. All you have to do is pass the parameter reference_map = TRUE to the existing functions. This should “just work”, regardless of which region you zoom in on or what data you display. The following table shows the affected functions and their The post

## Rebuilding Map Example With Apply Functions

September 30, 2015
By

Yesterday Hadley’s functional programming package purrr was published to CRAN. It is designed to bring convenient functional programming paradigma and add another data manipulation framework for R. “Where dplyr focusses on data frames, purrr focusses on vectors” – Hadley Wickham in a blogpost The core of the package consists of map functions, which operate similar to...

## A Package Full o’ Pirates & Makin’ Interactive Pirate Maps in arrrrrRstats

September 19, 2015
By

Avast, me hearties! It’s time four t’ annual International Talk Like a Pirate Day #rstats post! (OK, I won’t make you suffer continuous pirate-speak for the entire post) I tried to be a bit more practical this year and have two treasuRe chests for you to (hopefully) enjoy. A Package Full o’ Pirates I’ve covered

## From functional programming to MapReduce in R

September 17, 2015
By
$From functional programming to MapReduce in R$

The MapReduce paradigm has long been a staple of big data computational strategies. However, properly leveraging MapReduce can be a …Continue reading →

## The Map of Romantic Kissing with Leaflet and R

September 17, 2015
By

Romantic kissing is a cultural universal, right? Nope! At least not if you are to believe Jankowiak et al. (2015) who surveyed a large number of cultures and found that “sexual-romantic kissing” occurred in far from all of them. For some reasons the paper didn’t include a world map with these kissers and non-kissers plotted out. So, with the...

## Fully customizable legends for rleafmap

September 14, 2015
By

This is a functionality I wanted to add for some time… and finally it’s here! I just pushed on GitHub a new version of rleafmap which brings the possibility to attach legends to data layers. You simply need to create … Lire la suite →