Blog Archives

Happy Birthday GGD! The 10 Most Popular Posts Since GGD’s Launch

February 23, 2010
By

The first post on Getting Genetics Done was one year ago today. To celebrate, here are the top 10 most viewed posts since GGD launched last year. Incidentally, nine of the ten are tutorials on how to do something in R. Thanks to all the readers and all...

Read more »

Seminar: Statistical Methods for DNA Resequencing Analysis in Disease-Gene Studies

February 12, 2010
By

Department of Biostatistics Seminar/Workshop Series: Statistical Methods for DNA Resequencing Analysis in Disease-Gene Studies Wenyi Wang, Ph.D., Faculty Candidate Stanford Genome Technology Center, UC Berkeley Statistics 2:00-3:00pm Monday, Februa...

Read more »

LocusZoom: Plot regional association results from GWAS

February 10, 2010
By

Update Friday, May 14, 2010: See this newer post on LocusZoom. If you caught Cristen Willer's seminar here a few weeks ago you saw several beautiful figures in the style of a manhattan plot, but zoomed in around a region of interest, with several ot...

Read more »

Regression Modeling Strategies Course by Frank Harrell

February 8, 2010
By

Frank Harrell is teaching his 3-session short course on regression modeling strategies using R here at Vanderbilt next month. Frank is a professor and chair of the Vanderbilt Biostatistics Department, and the author of several massively popular R libra...

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 »

Coming to R from SQL, Python, SAS, Matlab, or Lisp

January 18, 2010
By

Head over to Revolutions Blog for a list of PDF and powerpoint resources for making the transition to R from other programming or stats languages.  All of these notes come from the New York R meetup. I enjoyed browsing the meetup's files - lots of powerpoints, PDFs, and example R data files for various topics, including several slideshows on...

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 »

New Features in ggplot2 0.8.5

January 6, 2010
By

Learning R blog details some of the new features in the latest update to ggplot2. The latest version includes functions to make it easier to change axis and legend labels, as well as a function to easily set the limits of the plot display outside the range of the data. Be sure to check back next week - I'm putting...

Read more »

Use plyr instead of _apply() in R

December 30, 2009
By

I've covered plyr once before, showing you how to get means and variances for two quantitative traits across multilocus genotypes. JD Long over at Cerebral Mastication recently posted a nice screencast illustrating how plyr "just works" as an alternative to R's family of apply commands.  There's a set of R functions (apply, sapply, lapply, tapply, eapply, and rapply) that...

Read more »