# Plot Results of Analytical Duplicate Analyses as Ratios

### Description

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`

.

### Usage

1 2 |

### Arguments

`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 |

### Details

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`

.

For examples see `ad.plot4`

as Geological Survey of Canada National Geochemical Reconnaissance survey data are not stored in this format. This function is present as the graphical equivalent to `anova1`

.

### Note

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`

.

### Author(s)

Robert G. Garrett

### See Also

`ad.plot4`

, `ad.plot2`

, `ltdl.fix.df`