Tuesday, September 8, 2009

Spike Graph

In order to create a similar graph to the "spike" state of art graph (using R) in Juergen's paper, I had to do the following things.

I had to read the first three chapters of a book titled "R Graphics" by Paul Murrell. This book is a bible for those who are interested in creating "creative" graphics using R.

After that, I started recreating the graph. It was not an easy task to figure out how to make more than 5 plots to be in one column. the default "mfraw"/ "mfcol" would never do the job if you have more than 5 plots. You have to go deep in R graphics and play with parameters related to margins/figures/ plots.

I used the data collected by the first actigraph from bill's old data. the following is a snapshot of what i have done so far. notice that the dates on the right side are static labels. I still did not figure our how to display dates on R plots:

No comments:

Post a Comment