saxeyCor | R Documentation |
saxeyCor
creates a 2D correlation histogram, similar to that of saxeyPlot
However, saxeyCor
differs in that it offers various normalization options. This is the
"correlation table" referred to in section 2.1 of Saxey, D. W. (2011).
saxeyCor( ind, ato, begin, end, res = 0.5, plot.it = TRUE, expected = "DOUBLE", log = FALSE, remove_diagonal = FALSE, remove_double = FALSE, remove_diagonal_width = 0, remove_double_width = 0, expected_remove_threshold = NA, ... )
ind |
A vector of first hit indices for double hits. The list
generated by |
ato |
An ATO data frame. This data frame is generated by |
begin |
A numeric. The starting mass value of the correlation histogram |
end |
A numeric. The ending mass value of the correlation histogram |
plot.it |
A logical scalar. Should the result be plotted? |
expected |
either |
log |
a logical. Should the log of the results be plotted? |
remove_diagonal |
a logical. Should the diagonal (y = x) be removed? This effectively removes values of p_ii/d_ii |
remove_double |
a logical. Should the "double diagonal" lines (y = 2x and y = 1/2x) be removed? |
remove_double_width |
an integer. If |
expected_remove_threshold |
A numeric. Will remove all pixels whose expectation values e_ij are less than this threshold |
... |
extra input to be added to |
res. |
A numeric. The bin width of the correlation histogram |
remove_diagona_width |
an integer. If |
This is used to reproduce plots made in of Saxey, D. W. (2011). If expected = FALSE
,
then the uncorrected correlation histograms shown in Figure 3 of Saxey, D. W. (2011), are produced.
If expected = "DOUBLE"
, then the calculations will follow equations 2.1-2.3 and d_ij will be plotted.
#' If expected = "TOTAL"
, then the calculations will follow equations 2.1-2.3, except
expectation values e_ij are calculated using all hits, not just double hits
Saxey, D. W. (2011). Correlated ion analysis and the interpretation of atom probe mass spectra. Ultramicroscopy, 111(6), 473-479. https://doi.org/10.1016/j.ultramic.2010.11.021.
indexMultiples
, ash2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.