Blog Archives

The end of the line for error bars in R

November 5, 2013
By
The end of the line for error bars in R

When plotting in R, I often use the segments function to add lines representing confidence intervals. This is a very simple way to plot lines connecting pairs of x,y coordinates. Recently I discovered that by default, segments are styled with … Continue reading →

Read more »

Using R to parse time (and taxon names) with GBIF’s API

October 21, 2013
By
Using R to parse time (and taxon names) with GBIF’s API

GBIF has recently made a bunch of handy tools available via their revamped API. These tools include a species name parser, which seems very useful for cleaning long lists of taxon names. Here’s a simple R function that takes a … Continue reading →

Read more »

Getting rasters into shape from R

July 25, 2012
By
Getting rasters into shape from R

Today I needed to convert a raster to a polygon shapefile for further processing and plotting in R. I like to keep my code together so I can easily keep track of what I’ve done, so it made sense to … Continue reading →

Read more »

R functions to filter rjags results

June 7, 2012
By
R functions to filter rjags results

A while back I was running a bunch of JAGS models through R, using the rjags (written by Martyn Plummer) and R2jags (by Yu-Sung Su) packages. These packages provide a great interface to the JAGS software, which allows analysis of … Continue reading →

Read more »

I, Rbot: Tweeting from R

August 18, 2011
By
I, Rbot: Tweeting from R

Over the past few weeks I’ve been running batches of JAGS simulations from R. Although these models typically converged within an hour or so, more complex models can take days, or even weeks to converge. Because we, as humans, are … Continue reading →

Read more »

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)