Learn R Programming

titrationCurves (version 0.1.0)

ppt_analyte: Precipitation Titration Curve: Monitoring pAnalyte

Description

This function calculates and plots the precipitation titration curve for an analyte and a titrant that form a precipitate with a 1:1 stoichiometry. The calculation uses a single master equation that finds the volume of titrant needed to achieve a fixed concentration of the analyte, expressed as pAnalyte, as outlined in R. de Levie's Principles of Quantitative Chemical Analysis (McGraw-Hill, 1997).

Usage

ppt_analyte(conc.analyte = 0.025, conc.titrant = 0.05, vol.analyte = 50, pksp = 16.08, plot = TRUE, eqpt = FALSE, overlay = FALSE, ...)

Arguments

conc.analyte
Molar concentration of the analyte; defaults to 0.025 M.
conc.titrant
Molar concentration of the titrant; defaults to 0.050 M.
vol.analyte
The initial volume, in mL, of the solution containing the analyte; defaults to 50.00 mL.
pksp
The pKsp value for the precipitate; defaults to 16.08, which is the pKsp for AgI.
plot
Logical; if TRUE, plots the titration curve.
eqpt
Logical; if TRUE, draws a vertical line at the titration curve's equivalence point.
overlay
Logical; if TRUE, adds the current titration curve to the existing titration curve.
...
Additional arguments to pass to plot() function.

Value

A two-column data frame that contains the volume of titrant in the first column and the solution's pAnalyte in the second column. Also produces a plot of the titration curve with options to display the equivalence point and to overlay titration curves.

Examples

Run this code
### Simple titration curve with equivalence point
ex13 = ppt_analyte(eqpt = TRUE)
head(ex13)

### Overlay titration curves using different pKsp values 
ppt_analyte(pksp = 16, eqpt = TRUE)
ppt_analyte(pksp = 14, overlay = TRUE)
ppt_analyte(pksp = 12, overlay = TRUE)

Run the code above in your browser using DataLab