Learn R Programming

transmem (version 0.1.1)

cyclesPlot: Plots transport profiles for processes involving several cycles

Description

Given the data (data frames) of a transport process that was carried in several cycles (e.g. membrane reuse or metal concentration studies), plots the transport profiles like in a continuous experiment indicating the end of each cycle

Usage

cyclesPlot(trans, xlab = "Time (h)", ylab = expression(Phi), xlim = NULL,
  ylim = NULL, xbreaks = NULL, ybreaks = NULL, size = 1.8,
  legend = FALSE)

Arguments

trans

List containing the (ordered) transport data of each cycle. Each data frame must be generated using conc2frac.

xlab

Label to be used for x axis. Text and expression allowed.

ylab

Label to be used for y axis. Text and expression allowed.

xlim

Numeric vector of limits for X-axis.

ylim

Numeric vector of limits for X-axis.

xbreaks

Numeric vector of x-axis breaks.

ybreaks

Numeric vector of x-axis breaks.

size

Size used for points in the plot.

legend

Logical. If FALSE, the default, the legend is not included.

Value

Plot of the transport process carried in several cycles

Details

If a concentration experiment has been made through the cycles, it is recommended the y-axis to be in concentration scale instead of fractions. To get the transport data frame in concentration units use conc2frac(..., normalize = FALSE). For more details see conc2frac.

Most transmem graphical representations are made using the package ggplot2 so the function returns a ggplot2 object that can be assigned to a variable for further modification.

References

Wickham H (2016). ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York. ISBN 978-3-319-24277-4, https://ggplot2.tidyverse.org.