Blog Archives

Time series packages on R

October 16, 2008
By

There is now an official CRAN Task View for Time Series. This will replace my earlier list of time series packages for R, and provide a more visible and useful entry point for people wanting to use R for time series analysis. If I have missed anything ...

Read more »

R books

July 30, 2008
By

Amazon.com Widgets

Read more »

R books

July 30, 2008
By
R books

Amazon.com Widgets

Read more »

R workshop

March 28, 2008
By

There was an R workshop on 28-29 June, just before the Australian Statistical Conference. I put in an appearance on the second day giving two talks. Time series and forecasting in R handout slides Building R packages for Windows handout slides

Read more »

R workshop

March 28, 2008
By
R workshop

There was an R workshop on 28–29 June, just before the Australian Statistical Conference. I put in an appearance on the second day giving two talks. Time series and forecasting in R handout slides Building R packages for Windows handout slides

Read more »

R graph with two y-axes

February 4, 2008
By
R graph with two y-axes

I’ve been asked how to do this several times, so I thought it might help to put an example online. x <- 1:5 y1 <- rnorm(5) y2 <- rnorm(5,20) par(mar=c(5,4,4,5)+.1) plot(x,y1,type="l",col="red") par(new=TRUE) plot(x, y2,,t...

Read more »

R graph with two y-axes

February 4, 2008
By
R graph with two y-axes

I’ve been asked how to do this several times, so I thought it might help to put an example online. x <- 1:5 y1 <- rnorm(5) y2 <- rnorm(5,20) par(mar=c(5,4,4,5)+.1) plot(x,y1,type="l",col="red") par(new=TRUE) plot(x, y2,,type="l",col="blue",xaxt="n",yaxt="n",xlab="",ylab="") axis(4) mtext("y2",side=4,line=3) legend("topleft",col=c("red","blue"),lty=1,legend=c("y1","y2"))

Read more »

Organization and R

September 5, 2007
By

Many R users seem to get themselves in a bit of a mess with R files and workspaces scattered across different directories. The R files themselves also get messy and hard to follow. So here is some advice on keeping organized with R: Try to keep code strictly indented based on the code structure

Read more »

Organization and R

September 5, 2007
By

Many R users seem to get themselves in a bit of a mess with R files and workspaces scattered across different directories. The R files themselves also get messy and hard to follow. So here is some advice on keeping organized with R: Try to keep code ...

Read more »

Debugging in R

August 30, 2007
By

Anyone who starts writing serious R code (i.e., code that involves user-written functions) soon finds the need to use debugging tools. There are a few basic tools in R that are worth knowing about. The function debug() allows one to step through the ex...

Read more »