Convenience function to visualize the residuals from calibrations generated by iso_generate_calibration
. Uses iso_plot_data internally and additional parameters (...
) can be passed to iso_plot_data.
iso_plot_residuals( dt, x, y = calibration_residual(), calibration = last_calibration(dt), color = calibration_model_name(), panel = calibration_model_name(), points = TRUE, trendlines = TRUE, value_ranges = TRUE, ... )
dt | data frame to plot data from |
---|---|
x | the column or expression for the x-axis aesthetic. Can be a numeric, text or datetime column (text and datetime column labels will be automatically rotated by 90 degrees). For clarity of the plot, only one x variable or expression is allowed. Use named vector with |
y | which columns/expressions to visualize. Combine with |
color | variable to use for color aesthetic for the plot or constant value for the point and line color |
panel | whether to panel the data by anything. If using a single parameter (e.g. |
points | whether to plot points (FALSE by default) |
trendlines | whether to add trendlines to the residuals plot to highlight patterns more easily. To customize more, set |
value_ranges | whether to add value ranges (via iso_mark_value_range) to the plot to highlight residuals variation. To customize more, set |
... | additional parameters passed to iso_plot_data |
Other plot functions:
iso_mark_calibration_range()
,
iso_mark_outliers()
,
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_scan_data()
,
iso_prepare_continuous_flow_plot_data()
,
iso_prepare_dual_inlet_plot_data()
,
iso_prepare_scan_plot_data()