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.
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" )
| p | a ggplot object, typically generated by |
|---|---|
| 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 |
| 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 |
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()