1764 search results for "ggplot2"

R and Foursquare’s recommendation engine

May 8, 2012
By
R and Foursquare’s recommendation engine

Foursquare, the mobile location-sharing app (of which I'm a big fan), has an excellent recommondation system. Based on your recent checkins, places your friends found popular, and even the time of day, Foursquare Explore will recommend a great place for a sushi lunch, or the best place to buy new shoes. This presentation from Foursquare engineer Ben Lee shows...

Read more »

Multiplicative effects in sensory panel data

May 7, 2012
By
Multiplicative effects in sensory panel data

In a previous post I used JAGS to build the Bayesian equivalent of a two-way ANOVA. Effects were determined of products, panelists and their interaction. In this post this model will be rebuild to provide a more simplified and advanced model. The inter...

Read more »

Waterfall charts in style of The Economist with R

May 7, 2012
By
Waterfall charts in style of The Economist with R

Waterfall charts are sometimes quite helpful to illustrate the various moving parts in financial data, in particular where I have positive and negative values like a profit and loss statement (P&L). However, they can be a bit of a pain to produce in Ex...

Read more »

playitbyr 0.2-1: data through sound, now with layers, facets, and more pleasure

May 6, 2012
By

The recent Sonification Handbook has a chapter devoted to exploratory data analysis using sound. With some help from Sam Ferguson, one of the chapter's authors, I've made it easy to implement those techniques using R with playitbyr.

Read more »

reshape (from base) Explained: Part II

May 5, 2012
By
reshape (from base) Explained: Part II

Part II Explains More Complex  Wide to Long With base reshape  In part I of this base reshape tutorial we went over the basics of reshaping data with reshape.  We learned two rules that help us to be more efficient … Continue reading →

Read more »

Making an Animated Heart GIF in R

May 5, 2012
By

Messing around with animations, I created this toy example to make a growing outline of a heart in R. I have put it up as a gist on GitHub and embedded it below. It uses the animation and the ggplot2 packages--both of which make it incredibly simple to...

Read more »

Kaplan-Meier Survival plot – with at risk table, by sub groups

May 4, 2012
By
Kaplan-Meier Survival plot – with at risk table, by sub groups

This is a follow on from the previous post, with updated code. There was an argument ‘groups’ in the ggplot(…) line of the code that was working but is now no longer working with the updated version of R/ggplot2 (I … Continue reading →

Read more »

Doodling With a Conversation, or Retweet, Data Sketch Around LAK12

May 2, 2012
By
Doodling With a Conversation, or Retweet, Data Sketch Around LAK12

How can we represent conversations between a small sample of users, such as the email or SMS converstations between James Murdoch’s political lobbiest and a Government minister’s special adviser (Leveson inquiry evidence), or the pattern of retweet activity around a couple of heavily retweeted individuals using a particular hashtag? I spent a bit of time

Read more »

Finding Earth II

May 2, 2012
By
Finding Earth II

By 2030, we will have found approximately 10,000 exoplanets. "If it is just us... seems like an awful waste of space." -- from the movie Contact (1997) based on the book Contact by Carl Sagan. By the year 2030, it's possible that over ten th...

Read more »

New R User Group in Cologne, Germany

May 1, 2012
By

The latest local R user group to join the fold is the Köln R User Group, now the sixth R user group in Germany. Their first group meeting will be on July 6, with presentations on ANOVA, ggplot2 graphics in Deducer, and writing R code with Emacs's Org-mode. If you're in the Cologne area, this would be a great...

Read more »