Plot Results of Analytical Duplicate Analyses as Ratios
Function to plot the results of analytical duplicate analyses as ratios vs. their means with logarithmic scaling. Classical and robust estimates for the mean/median and Relative Standard Deviations (%) are displayed. In addition to displaying this information the 95% standard error interval on the mean ratio is estimated and used to test that the mean ratio is not significantly different from one. A situation that would indicate severe systematic drift between the analytical duplicates, something that could happen if the duplicates were analysed in a separate batch at a later date, or were analysed as a group at the beginning or end of an analytical batch. The mean ratio and 95% confidence bounds for the duplicate ratios are plotted as dotted lines on the plot. If the lower detection for the analyses is defined, and it falls within the range of the duplicate meams, it will be plotted as a red vertical dotted line. To facilitate comparison between measurements, or measurements by different methods, the range of the ratio display can be defined. Optionally, the locator may be deployed so that the ratios for estimating the 95% confidence bounds on any value may be placed on the plot in a location of the user's choice. Optionally the ratio plot may be supplemented by an CPP of the ratios, in which case they are presented as side-by-side plots. For data stored in alternate forms from that expected by this function use ad.plot4
.
ad.plot3(x1, x2, xname = deparse(substitute(x1)), if.order = FALSE, ad.tol = NULL, ldl = NULL, maxrat = NULL, if.text = FALSE, if.cpp = FALSE, ...)
x1 |
a column vector from a matrix or data frame, |
x2 |
another column vector, |
xname |
a title can be displayed with the plot and results, e.g., |
if.order |
by default the analytical duplicate results are plotted against their means. Alternately, setting |
ad.tol |
a tolerance level may be provided for the maximum acceptable percent ratio between duplicates when they are plotted sequentially, i.e. |
ldl |
if the lower detection limit (ldl) of the analytical procedure is provided and falls within the range of the duplicate means it will be plotted as a vertical red dotted line. |
maxrat |
optionally the maximum ratio for the plot axis, the minimum is computed as |
if.text |
if set |
if.cpp |
if set |
... |
any additional arguments to be passed to the |
If the data are as a single concatenated vector from a matrix or data frame as x1[1], ..., x1[n]
followed by x[n+1], ..., x[2n]
, or alternated as x[1]
and x[2]
being a pair through to x[2*i+1]
and x[2*i+2]
for the i in 1:n
duplicate pairs use function ad.plot4
.
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
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.