Posts tagged with

R

Mapping With Shapefiles in R

Geographic data is often available as a shapefile, and there's plenty of heavy software to get that data in a map. R is an open source option, and as a bonus, much of the work can be done in a few lines of code.

Moving Past Default Charts

Customizing your charts doesn't have to be a time-intensive process. With just a teeny bit more effort, you can get something that fits your needs.

How to Make Dot Density Maps in R

Choropleth maps are useful to show values for areas on a map, but they can be limited. In contrast, dot density maps are sometimes better for showing distributions within regions.

Large-ish data packages in R

If you've played around with R enough, there comes a time when you just need some data to mess around with. Maybe it's to learn…

R meme generator

Nobody asked for it, so you got it. The meme package for R by Thomas Leeper lets you create the web's most popular memes in…

How to Make Gridded Maps

For when your geographic data is evenly spread rather than aggregated by government boundaries.

Optimizing your R code

Hadley Wickham offers a detailed, practical guide to finding and removing the major bottlenecks in your R code. It's easy to get caught up in…

Create a barebones R package from scratch

While we're on an R kick, Hilary Parker described how to create an R package from scratch, not just to share code with others but…

R for cats and cat lovers

Following the lead of JavaScript for Cats by Maxwell Ogden, Scott Chamberlain and Carson Sievert wrote R for Cats. It's a playful introduction to R…

Detecting and Plotting Sequence Changes

Change detection for a time series can be tricky, but guess what, there's an R package for that. Then show the results in a custom plot.

Mapping a century of earthquakes

Earthquakes are in the news a lot lately. A quick search shows a 7.6 off the coast of the Solomon Islands, a 6.6 in Nicaragua,…

How to Make Smoothed Density Maps in R

Too many points to plot often means obscured patterns in the clutter. Density maps offer a smooth alternative.

How to Read and Use Histograms

The chart type often goes overlooked because people don't understand them. Maybe this will help.

Interactive maps with R

You can make static maps in R relatively well, if you know what packages to use and what to look for, but there isn't much…

Where People Run in Major Cities

There are many exercise apps that allow you to keep track of your running, riding, and other activities. Record speed, time, elevation, and location from…

How R came to be

Statistician John Chambers, the creator of S and a core member of R, talks about how R came to be in the short video below.…

Learn R interactively with the swirl package

R, the statistical computing language of choice and what I use the most, can seem odd to those new to the language or programming. And…

How to Map Geographic Paths in R

As people and things move through a place, it can be useful to see their connected paths instead of just individual points.

Introducing R to a non-programmer, in an hour

Biostatistics PhD candidate Alyssa Frazee was tasked with teaching her sister, an undergraduate in sociology, how to use R. She had only one hour. Once…

The Baseline and Working with Time Series in R

A big part of statistics is comparisons, and perhaps more importantly, to figure out what to compare things to. Perspective changes with the baseline.

Accidental aRt

There comes a time late at night when your screen grows fuzzy and the code runs together. Mistakes happen, and with visualization, the bugs often…

How to Display Text in R

Text can provide much needed context to traditional visual cues and can be used as a visual cue itself in some cases.