Software notes: R

Installing packages (windoze)

Using the R command to install packages on a windoze box also means installing loads of stuff from cygwin etc. This sucks.

Setting margins

mai
A numerical vector of the form 'c(bottom, left, top, right)' which gives the margin size specified in inches.
mar
A numerical vector of the form 'c(bottom, left, top, right)' which gives the number of lines of margin to be specified on the four sides of the plot. The default is 'c(5, 4, 4, 2) + 0.1'.

# minimal margins (no room for captions etc)
oldpar<- par (mai=c(0.2,0.2,0.1,0.1))
# plotting code goes here
par (oldpar)

Document history