ggplot2

Quick Introduction to ggplot2

January 17, 2012 | Edwin Chen

For a much better looking version of this post (where code is actually readable!), see this Github repository, which also contains some of the example datasets I use and a literate programming version of this tutorial. Introduction This is a bare-bones introduction to ggplot2, a visualization package in R. It ... [Read more...]

You’ve got the whole world in your portfolio

December 29, 2011 | dan

A famous finance professor once told us that good diversification meant holding everything in the world. Fine, but in what proportion? Suppose you could invest in every country in the world. How much would you invest in each? In a market-capitalization weighted index, you'd invest in each country in proportion ... [Read more...]

Weecology can has new mammal dataset

December 29, 2011 | Scott Chamberlain

So the Weecology folks have published a large dataset on mammal communities in a data paper in Ecology.  I know nothing about mammal communities, but that doesn't mean one can't play with the data...Their dataset consists of five csv files: &...
[Read more...]

Recology is 1 yr old…

December 23, 2011 | Scott Chamberlain

This blog has lasted a whole year already.  Thanks for reading and commenting. There are a couple of announcements:Less blogging:  I hope to put in many more years blogging here, but in full disclosure, I am blogging for Journal of Ecology no...
[Read more...]

I Work For The Internet !

December 13, 2011 | Scott Chamberlain

UPDATE: code and figure updated at 1150 am CST.The site I WORK FOR THE INTERNET is collecting pictures and first names (last name initials only) to show collective support against SOPA (the Stop Online Piracy Act).  Please stop by their site and a...
[Read more...]

My Favorite Graphs

December 5, 2011 | Nina Zumel

The important criterion for a graph is not simply how fast we can see a result; rather it is whether through the use of the graph we can see something that would have been harder to see otherwise or that could not have been seen at all. – William Cleveland, The ... [Read more...]

Earthquakes

November 30, 2011 | Isomorphismes

__ data(quakes)__ head(quakes) lat long depth mag stations 1 -20.42 181.62 562 4.8 41 2 -20.62 181.03 650 4.2 15 3 -26.00 184.10 42 5.4 43 4 -17.97 181.66 626 4.1 19 5 -20.42 181.96 649 4.0 11 6 -19.6... [Read more...]

Job Satisfaction in England – GGPlot #2

November 29, 2011 | Abraham Mathew

I’ve recently been scouring the internet for a public opinion data set pertaining to job satisfaction. I was particularly interested in examining how gender, age, and socio-economic status influence how satisfied an individual is with their current employment situation. For example, existing research suggests that women and private-sector employees ... [Read more...]

My talk on doing phylogenetics in R

November 18, 2011 | Scott Chamberlain

I gave a talk today on doing very basic phylogenetics in R, including getting sequence data, aligning sequence data, plotting trees, doing trait evolution stuff, etc.Please comment if you have code for doing bayesian phylogenetic inference in R.  ...
[Read more...]

Shoe Consumption in the U.S. – GGPlot2 #1

October 26, 2011 | Abraham Mathew

  This is the first in a series of blog posts in which I use the R package GGPlot2 to examine real world data. In this post, I construct a line graph of U.S. shoe consumption from 1995 to 2007. A recent survey conducted by Shop Smart magazine found that the average ... [Read more...]

New food web dataset

October 14, 2011 | Scott Chamberlain

So, there is a new food web dataset out that was put in Ecological Archives here, and I thought I would play with it. The food web is from Otago Harbour, an intertidal mudflat ecosystem in New Zealand. The web contains 180 nodes, with 1,924 links. Fu...
[Read more...]

Do cents follow Benford’s Law?

October 5, 2011 | dan

Benford's law is an amazing thing. If you know the probability distribution that classes of "natural" numbers should have, you can detect where people might be faking data: phony tax returns, bogus scientific studies, etc. [Read more...]

Dollars and cents: How are you at estimating the total bill?

September 30, 2011 | dan

When estimating the cost of a bunch of purchases, a useful heuristic is rounding to the nearest dollar. (In fact, on US income tax returns, one is allowed to omit the cents). If prices were uniformly distributed, the following two heuristics would be equally accurate: * Rounding each item up or ... [Read more...]

Googling Bayes’ pictures

September 29, 2011 | Julyan Arbel

I am writing way too many posts in a row on Google tools. I promise I will think about something else soon. I find amusing the possibility to launch a search in Google images by just dragging a picture into … Continue reading → [Read more...]
1 2 3 4 5 6 11

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)