Posts Tagged ‘ visualization ’

What Countries are ‘Pulling their Weight’ for Haiti?

January 26, 2010
By
What Countries are ‘Pulling their Weight’ for Haiti?

Using the data provided ReliefWeb on the Appeals and Funding to Haiti (h/t DataBlog) and the most recent GNP estimates, I decided to do a little “back of the envelope” analysis. With GNP as a proxy for a country’s wealth, the hypothesis is that pledges should roughly be a linear function of wealth, i.e., the

Read more »

Fluctuation plot using ggplot2 in R

January 22, 2010
By

Found this nice way to visually summarize contingency tables using ggplot2 in R on Hadley Wickham's ggplot2 cheat sheet. Using the same data in my previous post on making scatterplots in small multiples, I'll demonstrate how to use ggfluctuation() to m...

Read more »

GWAS Manhattan plots and QQ plots using ggplot2 in R

January 20, 2010
By

Will posted earlier this week about how to produce manhattan plots of GWAS results using Stata, so I thought I'd share how I do this in R using ggplot2.First, if you've never used ggplot2, you'll need to add it to your R installation by typing:install.packages("ggplot2")Once you've done that, copy and paste this command to download the functions I wrote...

Read more »

ggplot2 Tutorial: Scatterplots in a Series of Small Multiples

January 11, 2010
By

It took several months after learning about ggplot2 before I gave it a try myself.  I was apprehensive about learning a new graphics system with a new set of commands.  Thing is, if you've ever used plot() in R, you already know how to use much of the functionality in ggplot2!  In this tutorial I want to show you...

Read more »

Visualizing Data with R and ggplot2 (video w/ slides)

December 18, 2009
By

On December 3, 2009 I presented a brief talk at the NYC R meetup on how to create data visualizations with R using the immensely powerful ggplot2 package. The talk is very light on motivation but heavy on examples, so it may be more useful to those with some R and/or ggplot2 experience.

Read more »

Browse R Graphics with the R Graph Gallery and the R Graphical Manual

December 15, 2009
By

One of R's biggest strengths is its unparalleled graphing capabilities.  Just see any of our previous posts on ggplot2, visualization, or other posts tagged with R. R has several fundamentally different systems for plotting, including base graphics, lattice, and ggplot2.  Furthermore, many add-on packages come with their own functions for producing problem-domain specific graphics. For example,

Read more »

My Five Rules for Data Visualization

December 3, 2009
By
My Five Rules for Data Visualization

Tonight the NYC R Meetup will be discussing data visualization in R using ggplot2. As part of tonight’s meeting I will be providing a very brief show and tell, which includes mostly code examples and external resources. This exercise has had me thinking quite a bit about data visualization. In addition, a

Read more »

QQ plots of p-values in R using ggplot2

November 9, 2009
By

Way back will wrote on this topic.  See his previous post for Stata code for doing this.  Unfortunately the R package that was used to create QQ-plots here has been removed from CRAN, so I wrote my own using ggplot2 and some code I received from Daniel Shriner at NHGRI.Of course you can use R's built-in qqplot() function, but...

Read more »

“I’m a Republican because…”, visualized with R

October 15, 2009
By
“I’m a Republican because…”, visualized with R

Visualizing user-generated statements from GOP.com to the theme of "I'm a Republican because...", using R.

Read more »

Visualizing sample relatedness in a GWAS using PLINK and R

October 9, 2009
By

Strict quality control procedures are extremely important for any genome-wide association study.  One of the first steps you should take when running QC on your GWAS is to look for related samples in your dataset.  This does two things for you.  First, you can get an idea of how many related samples you have in your dataset, and second,...

Read more »