This function add to the data frame generated by tidy_epma()
columns
outlier
(boolean), pkint.L_est
, pkint.H_est
, mapint.L_est
, beta
, and
mapint.H_est
. Required columns in input are id
, elint
, phase
, pk_t
, beam
, dwell
, beam_map
, mapint
, mapint.L
, mapint.H
, pkint
, pkint.L
, pkint.H
.
find_outlier( epma, phase = everything(), element = everything(), interval = c("prediction", "tukey"), method = c("rq", "lsfit", "median"), percentile = 0.99, fine_phase = NULL )
epma | A value returned by |
---|---|
phase, element | Selected ones are referenced to detect outliers. Default selects everything.
Tidy selection is available. For example |
interval | A type of the interval. Data points outside intervals are treated as outliers.
If |
method | Applicable when |
percentile | A percentile of predictive interaval.
Applicable when |
fine_phase | Deprecated as of qntmap > 0.4.0. Use |
When comparing data points of spot analysis and mapping analysis who share the same coordinates, it is expected that they analyze the same phases. However, this is unlikely when mapping analysis involves multi-phase pixels due to sizes of pixels and phases. This function removes such multi-phase pixels by finding outliers of mapping peak intensities.