plot_capacities: Plot charge and discharge capacity versus cycle number

Description Usage Arguments Details Value Author(s) See Also

Description

This function takes a data frame with charge and discharge capacity data and makes a plot of these capacities versus cycle number. Useful for qualitative investigations of capacity fade.

Usage

1
plot_capacities(inputdf, xdata = "Cycle", ydata = "Charge")

Arguments

inputdf

Data frame with the data to plot. Should be a data frame made with import_cycling_stats

xdata

Name of the column under which the cycle numbers are stored.

ydata

Name of the column under which the charge/discharge capacities are stored.

Details

This function should only be used on data frames generated with import_cycling_stats as it will probably fail otherwise. It assumes that the Type column exists in the input data frame and colors the plot by Type. The function will return a ggplot, which can be further edited through any of the ggplot methods.

Value

Returns a ggplot object plotting charge/discharge capacity versus cycle number.

Author(s)

Mike Gerhardt

See Also

ggplot, import_cycling_stats


mikegerhardt/echem documentation built on May 22, 2019, 10:51 p.m.