1652 search results for "Ggplot2"

Wilcoxon Champagne test

June 14, 2011
By
Wilcoxon Champagne test

As an appetizer for Paris triathlon, Jérôme and I ran as a team last week-end an adventure racing in Champagne region (it mainly consists in running, cycling, canoeing, with a flavor of orienteering, and Champagne is kept for the end). It was organized by Ecole Polytechnique students who, for the first time, divided Saturday’s legs

Read more »

Donor analysis in R – Smith for Congress

June 13, 2011
By
Donor analysis in R – Smith for Congress

In a previous post I introduced the Smith for Congress data set. The data is 49k contributions made by individuals to a congressional campaign for the 2006-2010 electoral cycles. Smith for Congress is not the name of the actual campaign. Individual contributions are not required to be disclosed by a campaign unless the individual donates

Read more »

Two Castles Run 2011

June 12, 2011
By
Two Castles Run 2011

I did the Two Castles Run today; it’s a 10km race between Warwick and Kenilworth castles. The organizers were very quick to put the results online and even went the extra mile of offering them as a CSV file. It … Continue reading →

Read more »

Identifying and characterizing droughts with R

June 11, 2011
By
Identifying and characterizing droughts with R

Recently, I’ve been playing with patterns of drought in paleo records of streamflow. One of the earliest and most helpful tools I’ve developed, identifies and characterizes droughts in extremely long time series using R. I’m still hacking my way through it, but this is what has been cooking thus far… For this example I’ll be

Read more »

Simple plyr/ggplot example of cummulative distribution plots

June 9, 2011
By
Simple plyr/ggplot example of cummulative distribution plots

I’ve been a big fan of ggplot2 for a long time but plyr has been in my toolkit for less than a year and it is now one of my most-used R packages. It is how aggregate/*apply would have been if they were awesome. In five lines this code computes the cumulative distribution functions of

Read more »

Rejection Sampling

June 9, 2011
By
Rejection Sampling

An interesting sampling method that was covered briefly in my Bayesian statistics course was rejection sampling. Since I have nothing better to do, I thought it would be fun to make an acceptance-rejection algorithm using R. FUN!The Rejection Sampling method is usually used to simulate data from an unknown distribution. To do this one samples...

Read more »

The R-Files: Jeroen Ooms

June 9, 2011
By
The R-Files: Jeroen Ooms

"The R-Files" is an occasional series from Revolution Analytics, where we profile prominent members of the R Community. Name: Jeroen Ooms Background: Ph.D. Candidate, Statistics, UCLA Nationality: Netherlands Years Using R: 3 1/2 Known for: Developing web applications for popular R packages including ggplot2, lme4, stockplot and irttool Jeroen Ooms is a statistical consultant and R enthusiast currently pursuing...

Read more »

K-Means Clustering on Big Data

June 7, 2011
By
K-Means Clustering on Big Data

In this post Joseph Rickert demonstrates how to build a classification model on a large data set with the RevoScaleR package. A script file for use with Revolution R Enterprise to recreate the analysis below is at the end of the post, and can also be downloaded here -- ed. The k-means (Lloyd) algorithm, an intuitive way to explore...

Read more »

The residuals of crime

June 3, 2011
By
The residuals of crime

Real-estate search website Trulia has a new tool to help you in your choice of a new home: crime maps. With local police forces being much better about sharing data crime maps are nothing new, but Trulia takes it to the next level with a slick user interface for navigating US cities, a beautiful heat-map visualization of crime hot-spots...

Read more »

Annual Returns by State of the US Economy

June 1, 2011
By
Annual Returns by State of the US Economy

Sometimes it is fun to just look at annual returns, especially as the financial world has shifted its focus to microseconds in a world of inconceivable macro imbalances.  St. Louis Fed (USREC) offers a binary state of the economy with 1=recession ...

Read more »