Learn R Programming

ezmmek (version 0.2.1)

p_std_curve: Create standard curve

Description

Creates a standard curve of spectral data versus fluorophore/chromophore concentration.

Usage

p_std_curve(d_std, man.units = FALSE)

Arguments

d_std

Must be a dataframe that contains 'std.conc' and 'spec'.

man.units

If 'man.units = TRUE', the user will be guided through a series of prompts to label the plot axes. If 'man.units = FALSE', a plot will generated with generic axes titles.

Value

List containing plot and fit model.

Details

Plots spectral data vs standard concentration. It asks the user to specify the axis labels with the appropriate units. It reports linear model summary statistics. It creates a list output containing the summary statistics and standard curve plot.

Examples

Run this code
# NOT RUN {
#If 'man.units = FALSE'
p_std_curve(d_std, man.units = FALSE)

#If 'man.units = TRUE'
#Run 'p_std_curve(d_std)'.
#When prompted 'Standard type:', type 'AMC' and press Enter.
#When prompted 'x-axis: What are the units of concentration?', type '3' and press Enter.
#When prompted 'y-axis: Detection unit?:', type 'FSU' and press Enter.

# }

Run the code above in your browser using DataLab