R demos (thanks to Peter J. Green)

You can download any of these R source files to your computer, and run them later. Alternatively, if you stay online, you can load each individual file directly into R by typing, for example,
source("http://people.maths.bris.ac.uk/~maxca/stats1/downloads/show.R")
for the function corresponding to section 2 and then run the functions immediately (note that if you cut and paste, some of the characters may be changed and R may not understand e.g. in my case quotes were changed to quotes R does not like).