Blog Archives

How to customize ggplot2 graphics

March 26, 2012
By
How to customize ggplot2 graphics

I consider ggplot2 to be nothing short of a revolution in R graphics. I simply haven't found anything like this package for quickly and elegantly producing usable graphics.  I covered the quick and dirty basics of ggplot2 in a previous post. Now I...

Read more »

Basic Introduction to ggplot2

March 12, 2012
By
Basic Introduction to ggplot2

This is a very basic introduction to the ggplot2 package.  A much more detailed description of the package can be found in this book ggplot2: Elegant Graphics for Data Analysis. On his website (http://had.co.nz/ggplot2/) package author Hadley Wickham describes ggplot2 asa plotting system for R, based on the grammar of graphics, which tries to take...

Read more »

Java based GUI for R

March 6, 2012
By

JGR is a pretty nice Java based GUI for R.  The primary reason I like this is that it is truly cross platform, and will work the same for any operating systemAdded benefits are that some packages like rJava and others tend to break on Mac OSX, but...

Read more »

Programatically rename files (or do other stuff to them) in R

February 29, 2012
By

In order to do something to a bunch of files at once, we first need a vector which contains the file paths of just the files we are interested in. startingDir<-"/myDirectory"filez<-list.files(startingDir,pattern="searchPattern")head(filez) "/m...

Read more »

Graphical message boxes with R package tcltk

February 29, 2012
By
Graphical message boxes with R package tcltk

Sometimes you just need a graphical messagebox....know what I mean? If only because it pops up in front of all the other open windows and alerts you to the fact that your R script is waiting for you to do something, or is finished doing something el...

Read more »