plotDiffGrid: Plot Diffusion Grids

Description Usage Arguments Value Examples

Description

Plots the diffusion grids used in cyclic voltammetry, linear sweep voltammetry, chronoamperometry, and chronocoulometry simulation. The diffusion grids are presented as heat maps giving the concentration of Ox, Red, or Z as a function of distance from the electrode surface on the x-axis and time on the y- axis. The scale on the x-axis may be adjusted to highlight better the diffusion grid near the electrode's surface. Note: the plotDiffGrid function requires that the plot3D package is installed.

Usage

1
plotDiffGrid(filename, species = c(TRUE, TRUE, FALSE), scale.factor = 1)

Arguments

filename

Name of the file that contains the results of a cyclic voltammetry, linear sweep voltammetry, chronoamperometry, or chronocoulometry simulation created using cvSim, lsvSim, caSim, or ccSim.

species

A vector of three logical values (T or F) indicating the species for which diffusion grids are displayed. The order in which species are identified is Ox, Red, and Z.

scale.factor

A factor for adjusting the scale on the x-axis. Setting the scale.factor to a value of less than 1 decreases the range of distances displayed in the diffusion grids.

Value

Returns a single plot showing 1–3 diffusion grids.

Examples

1
2
3
4
ex_cv = simulateCV(e.start = 0.25, e.switch = -0.25, e.form = 0,
  x.units = 100, t.units = 1000)
plotDiffGrid(ex_cv, species = c(TRUE, TRUE, FALSE),
  scale.factor = 0.5)

dtharvey/eChem documentation built on July 9, 2019, 1:35 a.m.