plotDiffGrid {eChem} | R Documentation |
Plot Diffusion Grids
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
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 |
species |
A vector of three logical values ( |
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
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)