Articles by Recology - R

Exploring phylogenetic tree balance metrics

October 10, 2012 | Recology - R

I need to simulate balanced and unbalanced phylogenetic trees for some research I am doing. In order to do this, I do rejection sampling: simulate a tree -__ measure tree shape -__ reject if not balanced or unbalanced enough. But what is enough? We ne... [Read more...]

Scholarly metadata from R

September 17, 2012 | Recology - R

Metadata! Metadata is very cool. It's super hot right now - everybody is talking about it. Okay, maybe not everyone, but it's an important part of archiving scholarly work. We are working on a repo on GitHub rmetadata to be a one stop shop for quer... [Read more...]

Getting data on your government

September 1, 2012 | Recology - R

I created an R package a while back to interact with some APIs that serve up data on what our elected represenatives are up to, including the New York Times Congress API, and the Sunlight Labs API. What kinds of things can you do with govdat? Here ... [Read more...]

Making matrices with zeros and ones

August 30, 2012 | Recology - R

So I was trying to figure out a fast way to make matrices with randomly allocated 0 or 1 in each cell of the matrix. I reached out on Twitter, and got many responses (thanks tweeps!). Here is the solution I came up with. See if you can tell why it... [Read more...]

ggplot2 maps with insets

August 22, 2012 | Recology - R

Here's a quick demo of creating a map with an inset within it using ggplot. The inset is achieved using the gridExtra package. Install libraries, set directory, read file setwd("/Users/ScottMac/Dropbox/CANPOLIN_networks_ms/data") # change ... [Read more...]

Take the INNGE survey on math and ecology

February 17, 2012 | Recology - R

Many ecologists are R users, but we vary in our understanding of the math and statistical theory behind models we use. There is no clear consensus on what should be the basic mathematical training of ecologists. To learn what the community thinks, we ... [Read more...]

Scraping Flora of North America

January 27, 2012 | Recology - R

So Flora of North America is an awesome collection of taxonomic information for plants across the continent. However, the information within is not easily machine readable. So, a little web scraping is called for. rfna is an R package to collect inf... [Read more...]
1 2

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)