Skip to navigation

Archive for the 'R' Category

Using the LaTeX landscape package for a plot/ figure in Sweave

Tuesday, April 15th, 2008

I’ve started using Sweave and immediately ran into a problem. I had a wide figure to include (actually, a plot that combined several plots in R using the layout command). I had used the lscape package in LaTeX and the corresponding landscape environment for that page, and before, it worked fine, but with Sweave, the […]

R: Delicious statistical-computing recipes at

Friday, September 28th, 2007

Just on the R mailing list, more good news for users and wannabe-users of R: is a new community site that offers handy R recipes. Once you register, you can post your own recipes and create a collection of your personal favorites. Looks like someone put Drupal to good use. My only quip so […]

R screencast tutorial

Friday, September 28th, 2007

Dan Goldstein has a nice R video (screencast) tutorial on Decision Science News. The topics covered in this first tutorial are the very basics. I think it’s a great idea, and I think it’s very nicely done to start explicitly step-by-step with how to download and install it in Windows, how to run it, and […]

Installing and updating R with aptitude

Tuesday, September 4th, 2007

If you like, choose your favourite R mirror from the CRAN mirror list and substitute it for the below. The following is for Ubuntu Dapper. If you are using a different distro, replace “dapper” with the correct codename for that distro before you add it to sources.list. sudo -s echo “deb dapper/” >> […]

R: Combine two matrices column by column

Monday, July 9th, 2007

I have two matrices. I want to combine these, alternatingly picking the next column from a and from b. > a a [,1] [,2] [,3] [1,] 1 2 3 [2,] 1 2 3 [3,] 1 2 3 [4,] 1 2 3 > b b [,1] [,2] [,3] [1,] 4 5 6 [2,] 4 5 6 […]