iso_mark_outliers: Mark outliers

Description Usage Arguments See Also

Description

This is a convenience function to visually highlight values that fall outside the data range via a flexible condition statement, plus_minus_value cutoff from the mean, or plus_minus_sd standard deviation cutoff from the mean. Optionally with a text label to make it easier to identify the analysis.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
iso_mark_outliers(
  p,
  condition = NULL,
  plus_minus_value = NULL,
  plus_minus_sd = sd_cutoff,
  sd_cutoff = NULL,
  label = NULL,
  size = 2,
  shape = 16,
  color = "black"
)

Arguments

p

a ggplot object, typically generated by iso_plot_data

condition

any filter expression to identify outliers

plus_minus_value

value cutoff to identify outliers (mean +/- value)

plus_minus_sd

standard deviation cutoff to identify outliers (mean +/- sd)

sd_cutoff

renamed to the more descriptive plus_minus_sd

label

optional expression to add a label to the outlier points

size

size of the outlier points

shape

shape of the outlier points

color

color of the outlier points

See Also

Other plot functions: iso_mark_calibration_range(), iso_mark_value_range(), iso_mark_x_range(), iso_plot_continuous_flow_data(), iso_plot_data(), iso_plot_dual_inlet_data(), iso_plot_raw_data(), iso_plot_ref_peaks(), iso_plot_residuals(), iso_plot_scan_data(), iso_prepare_continuous_flow_plot_data(), iso_prepare_dual_inlet_plot_data(), iso_prepare_scan_plot_data()


KopfLab/isoprocessorCUB documentation built on Nov. 8, 2021, 9:54 a.m.