plotPotential: Plot Applied Potential

Description Usage Arguments Value Examples

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

1
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

1
2
3
4
5
6
7
8
9
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")

eChem documentation built on May 2, 2019, 2:14 p.m.