## Make test available
data(ms.data1)
attach(ms.data1)
## Estimate RMA coefficients for duplicate measurements on rock samples
gx.rma(MS.1, MS.2, log = TRUE,
x1lab = "MS - 1", x2lab = "MS - 2")
## Display an x-y plot of the data and the RMA, ensuring a
## square plot with similar x- and y-axis labelling and
## appropriate axis labelling
save.rma <- gx.rma(MS.1, MS.2, log = TRUE,
x1lab = "MS - 1", x2lab = "MS - 2")
oldpar <- par()
par(pty = "s", pch = 3)
plot(MS.1, MS.2, log = "xy", xlim = c(min(MS.1, MS.2), max(MS.1, MS.2)),
ylim = c(min(MS.1, MS.2), max(MS.1, MS.2)),
xlab = "Magnetic Susceptibility - Measurement 1",
ylab = "Magnetic Susceptibility - Measurement 2")
abline(save.rma$a0, save.rma$a1, lty = 3)
par <- oldpar
## Clean-up and detach test data
rm(save.rma)
detach(ms.data1)
Run the code above in your browser using DataLab