calibplot_advise_lipidomics: calibplot_advise_lipidomics

View source: R/calibplot_advise_lipidomics.R

calibplot_advise_lipidomicsR Documentation

calibplot_advise_lipidomics

Description

calibplot_advise_lipidomics is the function for creating the calibration curves by the calibration matrix, and plotting the curves for the all the internal standard lipid species.

Usage

calibplot_advise_lipidomics(
  out,
  cal_plot_path = "CalibrationPlot",
  cal_mat,
  intercept_flag = TRUE,
  lm_robust_flag = FALSE,
  lin_calibration = TRUE,
  plot_calibration = TRUE
)

Arguments

out

List. It is the result from the filter_advise_lipidomics function.

cal_plot_path

Character string. It is the name of folder in which the plots of the calibration curves will be stored. Default = "CalibrationPlot".

cal_mat

Dataframe. It is the calibration matrix, generated after the calibration step.

intercept_flag

Logical value. If TRUE, linear model will be not forced to have the intercept at zero. Default = FALSE.

lm_robust_flag

Logical value. If TRUE, linear model will be performed in robust method (by using the function by MASS package). Default = FALSE.

lin_calibration

Logical value. If TRUE, a filter on concentration range of linearity is applied, considering the min and max values in the internal standard file. Default = TRUE.

plot_calibration

Logical value. If TRUE calibration plots are drawn.

Details

The second part of the calibration step calculates the coefficient values (intercept and slope) from the application of a linear regression on the values of the calibration matrix. The linear regression can be normal or robust, furthermore the intercept can be force to be zero. All the curves (lines) can be plotted and stored in the suitable folder.

Value

res: a list with results from filtering step, updated with the calibration matrix and the linear model coefficients.

Note

Last change 02/11/2021


ShinyFabio/ADViSELipidomics documentation built on March 21, 2023, 7:30 a.m.