gx.rma(xx1, xx2, x1lab = deparse(substitute(xx1)),
x2lab = deparse(substitute(xx2)), log = FALSE)
log = TRUE
. This is also advisable if the range of the observations exceeds 1.5 orders of magnitude.deparse(substitute(xx1))
. It is often desirable to replace the default title of the input variable name text string with a more informative title, e.g.,
x1l
deparse(substitute(xx2))
. It is often desirable to replace the default title of the input variable name text string with a more informative title, e.g., x2la
ltdl.fix.df
, remove.na
## 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