2687 search results for "map"

How to Remove State Abbreviations from a Choroplethr Map

August 20, 2015
By
How to Remove State Abbreviations from a Choroplethr Map

Today I will demonstrate how to remove state abbreviations from a choroplethr map. I will also demonstrate how to combine multiple maps into a single image. This is what the final image looks like: In this case the abbreviations obscure information for the northeast part of the country, so it’s useful to remove them. Step The post

Read more »

Visualising thefts using heatmaps in ggplot2

August 17, 2015
By
Visualising thefts using heatmaps in ggplot2

This is a continuation of my previous article, where I gave a basic overview of how to construct heatmaps in R. Here, I will show you how to use R packages to build a heatmap on top of the map of Chicago to see which areas have the most amount of crime. We will require

Read more »

Mapping Historic US Presidential Election Results

August 13, 2015
By
Mapping Historic US Presidential Election Results

Today I will demonstrate how to map historic US Presidential Election results in R. If you want to skip ahead and play with a shiny app that lets you visualize this dataset, then click here. The dataset we will use comes from wikipedia’s List of United States presidential election results by state and is packaged in the choroplethr The post

Read more »

Mapping the past and the future with Leaflet

July 29, 2015
By
Mapping the past and the future with Leaflet

I have been working on mapping things for a while and I must say that I really like the Leaflet package from Rstudio. It makes it very easy and straight forward to make leaflet maps. A while back I stumbled upon an interactive graphic from The Times, that used census data to compare each US... Read more »

Making Static/Interactive Voronoi Map Layers In ggplot/leaflet

July 26, 2015
By
Making Static/Interactive Voronoi Map Layers In ggplot/leaflet

Despite having shown various ways to overcome D3 cartographic envy, there are always more examples that can cause the green monster to rear it’s ugly head. Take the Voronoi Arc Map example. For those in need of a primer, a Voronoi tesslation/diagram is: …a partitioning of a plane into regions based on distance to points

Read more »

A Path Towards Easier Map Projection Machinations with ggplot2

July 24, 2015
By
A Path Towards Easier Map Projection Machinations with ggplot2

The $DAYJOB doesn’t afford much opportunity to work with cartographic datasets, but I really like maps and tinker with shapefiles and geo-data when I can, plus answer a ton of geo-questions on StackOverflow. R makes it easy—one might even say too easy—to work with maps. All it takes to make a map of the continental

Read more »

mapView: basic interactive viewing of spatial data in R

July 24, 2015
By
mapView: basic interactive viewing of spatial data in R

Working with spatial data in R I find myself quite often in the need to quickly visually check whether a certain analysis has produced reasonable results. There are two ways I usually do this. Either I: (sp)plot the data in … Continue reading →

Read more »

Administrative Maps and Projections in R

July 23, 2015
By
Administrative Maps and Projections in R

Today I will demonstrate how to create maps of “other countries”, and use map projections, with the choroplethr package in R. I write “other countries” in quotes because, like most things, translating a high level wish into software can be complicated. If you want to skip ahead and play with a web app that lets you explore The post

Read more »

Using the new ‘viridis’ colormap in R (thanks to Simon Garnier)

July 20, 2015
By
Using the new ‘viridis’ colormap in R (thanks to Simon Garnier)

Nathaniel Smith and Stéfan van der Walt presented a new colormap (for Python) at SciPy 2015 called viridis. From the authors: The default colourmap in Matplotlib is the colourful rainbow-map called Jet, which is deficient in many ways: small changes in the data sometimes produce large perceptual differences and vice-versa; its lightness gradient is

Read more »

MazamaSpatialUtils — Ebola Map Example

July 14, 2015
By
MazamaSpatialUtils — Ebola Map Example

This entry is part 16 of 16 in the series Using R The MazamaSpatialUtils package on CRAN has just been updated with additional shape file conversion scripts and location buffering so that points located just outside of polygons (i.e. coastal …   read more ...

Read more »