wb_sa: Titration Curve for a Weak Base

Description Usage Arguments Value Author(s) Examples

View source: R/wb_sa.R

Description

This function calculates and plots the titration curve for a monoprotic weak base analyte using a monoprotic strong acid 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
wb_sa(conc.acid = 0.1, conc.base = 0.1, pka = 9, pkw = 14,
  vol.base = 50, plot = TRUE, eqpt = FALSE, overlay = FALSE, ...)

Arguments

conc.acid

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

conc.base

Molar concentration of the weak base analyte; defaults to 0.10 M.

pka

The pKa value for the weak base analyte's conjugate weak acid; defaults to a pKa of 9, or a pKb of 5 for the weak base analyte.

pkw

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

vol.base

Initial volume, in mL, of the solution that contains the weak base analyte; 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
 9
10
11
12
### Simple titration curve with equivalence point
ex4 = wb_sa(eqpt = TRUE)
head(ex4)

### Overlay titration curves using different pKa values
wb_sa(pka = 9, eqpt = TRUE)
wb_sa(pka = 7, overlay = TRUE)
wb_sa(pka = 5, overlay = TRUE)

### Overlay titration curve for strong base and weak base
sb_sa(eqpt = TRUE)
wb_sa(overlay = TRUE)

Example output

      volume    ph
1 0.01767258 10.99
2 0.04025795 10.98
3 0.06286590 10.97
4 0.08550772 10.96
5 0.10819469 10.95
6 0.13093813 10.94

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