Posts tagged with

R

rvest: R package to scrape web data

Inspired by the Python libraries RoboBrowser and BeautifulSoup, the rvest package by Hadley Wickham helps you scrape web data via R in a similar way. Parse tables into data frames,…

Making an Interactive Map with Category Filters

Let readers focus on the regions they care about to make their own comparisons and conclusions.

Loading Data and Basic Formatting in R

It might not be sexy, but you have to load your data and get it in the right format before you can visualize it. Here are the basics, which might be all you need.

Choropleth Maps and Shapefiles in R

Fill those empty polygons with color, based on shapefile or external data.

Working with Map Projections and Shapefiles in R

No need to settle for the mapping defaults in R. Apply map projections to show geographic data in a way most suitable for your work.

Rising R usage in the sciences

R continues its growth, and usage in the sciences is no exception. Nature describes some of the applications along with links to getting started with the statistical computing language. Besides…

Mapping With Shapefiles in R – Getting Started

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 R 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 a new method or to…

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 a line of code. Enjoy.…

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 trying to remove all bottlenecks.…

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 to save yourself some time…

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 intended for those who have…

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, and a 7.1 off the…

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 in R

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 direct interaction with your graphics.…

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 your phone, and millions of…

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. Warning: Super nerdy waters ahead.…