R can be downloaded and installed quite easily. A link to the download sites is provided on the class data page.

Starting with plain R (i.e., without geo-stuff), On an MS-Windows or a Mac-OS system you'll probably click an icon to start R. You'll probably need to set the software's notion of the "directory you are working in" when you start the software. On a UNIX system you'll probably start R by typing the letter R at the system prompt in a terminal window, and the current directory will be assumed.

Below are examples of commands that will read text files and begin displaying graphs and computing summaries. You'll need to substitute your file names for those I've used in these examples. The general text data file format will have a line (row) of headers followed by lines of data. R seems pretty savvy about reading data and picking up the names in the header line.


R
bb <- read.table("brooms_barnR.txt", header=TRUE)
bb
summary(bb)
plot(bb$Col, bb$Row)
plot(bb$K)
plot(bb$K, bb$Col)
plot(bb$Col, bb$K)
stem(bb$K)
hist(bb$K)
hist(bb$K,50)
hist(bb$log10K)
help(histo)
??histo
help(hist)
hist(bb$K, seq(, , ), prob=TRUE)
boxplot(bb$P, bb$K)
qqnorm(bb$K)
qqnorm(bb$K); qqline(bb$K)
plot(ecdf(bb$K), do.points=TRUE, verticals=TRUE)
plot(ecdf(bb$P), do.points=FALSE, verticals=TRUE, add=TRUE)
lm(bb$P ~ bb$K)
plot(bb$P ~ bb$K)
lm( P ~ K, data=bb)
plot( P ~ K, data=bb)
objects()
rm(bb)
objects()

Using GeoR stuff

Maybe you/we need to install the geoR and geoRglm packages on your machine, this is quite easy if R has already been installed and the machine has network access:

chooseCRANmirror()
install.packages("geoR",  dependencies = TRUE)
install.packages("geoRglm",  dependencies = TRUE)

Once they are installed, try these...

require(geoR)   
bbg <- read.geodata("brooms_barnR.txt", header=TRUE)
bbg
points.geodata(bbg)
help(points.geodata)
plot.geodata(bbg)
rm(bbg)
bbg <- read.geodata("brooms_barnR.txt", header=TRUE, coords.col=1:2, data.col=3:7)
bbg
plot.geodata(bbg, col.data=4)
plot.geodata(bbg, col.data=5)
plot.geodata(bbg, col.data="pH")
quit()