wamix_sb: Titration Curve for Weak Acid Mixture

Description Usage Arguments Value Author(s) Examples

View source: R/wamix_sb.R

Description

This function calculates and plots the titration curve for a mixture of two monoprotic weak acid analyte using a monoprotic strong base as the titrant. The calculation uses a single master equation that finds the volume of titrant needed to achieve a fixed pH, as outlined in R. de Levie's Principles of Quantitative Chemical Analysis (McGraw-Hill, 1997).

Usage

1
2
3
wamix_sb(conc.acid1 = 0.1, conc.acid2 = 0.1, conc.base = 0.1, pka1 = 5,
  pka2 = 8, pkw = 14, vol.acid = 50, plot = TRUE, eqpt = FALSE,
  overlay = FALSE, ...)

Arguments

conc.acid1

Molar concentration of the first monoprotic weak acid analyte; defaults to 0.10 M.

conc.acid2

Molar concentration of the second monoprotic weak acid analyte; defaults to 0.10 M.

conc.base

Molar concentration of the strong base titrant; defaults to 0.10 M.

pka1

The pKa value for the first monoprotic weak acid analyte; defaults to a pKa of 5.

pka2

The pKa value for the second monoprotic weak acid analyte; defaults to a pKa of 8.

pkw

The pKw (or pKs) value for the solvent; defaults to water as a solvent with a pKw of 14.

vol.acid

Initial volume, in mL, of the solution that contains the weak acid analytes; defaults to 50.00 mL.

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 pH in the second column. Also produces a plot of the titration curve with options to display the equivalence point and to overlay titration curves.

Author(s)

David T. Harvey, DePauw University. harvey@depauw.edu

Examples

1
2
3
4
5
6
7
8
### Simple titration curve with equivalence points
ex9 = wamix_sb(eqpt = TRUE)
head(ex9)

### Overlay titration curves using different pKa values
wamix_sb(pka1 = 5, pka2 = 8, eqpt = TRUE)
wamix_sb(pka1 = 4, pka2 = 7, overlay = TRUE)
wamix_sb(pka1 = 6, pka2 = 9, overlay = TRUE)

Example output

      volume   ph
1 0.01817927 3.01
2 0.04077655 3.02
3 0.06339670 3.03
4 0.08605100 3.04
5 0.10875074 3.05
6 0.13150725 3.06

titrationCurves documentation built on May 2, 2019, 12:56 a.m.