Display a Thompson-Howarth Plot of Duplicate Measurements, Alternate Input
Function to prepare data stored in alternate forms from that expected by function thplot1
for its use. For further details see 'x' in Arguments below. The user is prompted for the location of the two legend items.
thplot2(x, xname = deparse(substitute(x)), ifzero = 0.01, xlow = NA, xhih = NA, yhih = NA, rsd = 5, ptile = 95, main = "", ifalt = FALSE, ...)
x |
a column vector from a matrix or data frame, |
xname |
by default the character string for |
ifzero |
as the Thompson-Howarth plot is log-scaled values of zero cannot be displayed, therefore the parameter |
xlow |
if is desired to produce plots with consistent scaling this may be achieved by defining |
xhih |
enter an appropriate value of |
yhih |
enter an appropriate value of |
rsd |
to assist in QA/QC inspection a target precision may be defined as a RSD%, a default of |
ptile |
defines the confidence interval for a line to be drawn on the plot above which only 100 - ptile% of the points should plot if the defined target RSD is being met. A default of |
main |
a title may be added optionally above the display, see Example. |
ifalt |
set |
... |
further arguments to be passed to methods. For example, the size of the axis scale annotation can be change by setting |
This function expects the RSD% as a measure of repeatability (precision), which is more familiar to the current generation of applied geochemists, rather than the precision at the 2 Standard Deviation level. The necessary calculations to conform with the Thompson and Howarth procedure are made internally.
For further details see thplot1
.
Duplicate pairs containing any NA
s are omitted from the calculations.
If the data are as n duplicate pairs, x1 and x2, use function thplot1
.
The user is prompted for the location of the two legend items added to the plot, the number of duplicate pairs, and whether or not the duplicates have met the RSD% criterion. In both instances the user is prompted for the location of the left end of the text line, or the top left corner of the text block.
Any less than detection limit values represented by negative values, or zeros or other numeric codes representing blanks in the data, must be removed prior to executing this function, see ltdl.fix.df
.
Robert G. Garrett
## NOTE: the examples below are commented out as thplot1 makes a ## call to the locator function that fails when the examples are run ## during package checking and building ## Make test data available ##data(ms.data2) ##attach(ms.data2) ## Display the default plot ##thplot2(MS, xname = "Magnetic Susceptibility", ## main = "Stanley (2003) Test Data") ## Detach test data ##detach(ms.data2) ## Make test data available ##data(ms.data3) ##attach(ms.data3) ## Display a Thompson-Howarth plot for a RSD of 7.5% and draw ## the limit for a confidence interval of 90% ##thplot2(MS, xname = "Magnetic Susceptibility", rsd = 7.5, ptile = 90, ## main = "Stanley (2003) Test Data", ifalt = TRUE) ## Detach test data ##detach(ms.data3)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.