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
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.