plotPotential {eChem} | R Documentation |
Plot Applied Potential
Description
Plots the applied potential as a function of time for an
object created using an object created with one of the
package's simulation functions: cvSim
for cyclic
voltammetry, lsvSim
for linear sweep voltammetry,
caSim
for chronoamperometry, or ccSim
for
chronocoulometry. Note: this function will not work with the
reduced data file created using sampleAmpgram
,
sampleCoulgram
, or sampleVoltgram
.
Usage
plotPotential(filename, main_title = NULL)
Arguments
filename |
Name of the file that contains the results of a simulated electrochemistry experiment. |
main_title |
An optional main title. |
Value
Returns a line plot that shows time on the x-axis and the applied potential on the y-axis.
Examples
ex_cv = simulateCV(e.start = 0.25, e.switch = -0.25, e.form = 0,
x.units = 100, t.units = 1000)
plotPotential(ex_cv,
main_title = "Applied Potential for a Cyclic Voltammetry Simulation")
ex_ca = simulateCA(e.start = 0.25, e.pulse = -0.25, e.form = 0,
pulses = "double", t.2 = 20, x.units = 100, t.units = 1000)
plotPotential(ex_ca,
main_title = "Applied Potential for a Chronoamperometry Simulation")
[Package eChem version 1.0.0 Index]