transPlotWR: Plots transport profiles of replicated experiments

Description Usage Arguments Details Value Author(s) References Examples

View source: R/transPlotWR.R

Description

The function works the same way as transPlot but requires several experimental data sets that must be concatenated in lists. This allows the process reproducibility to be evaluated in the analysis of the results.

Usage

1
2
3
4
5
transPlotWR(trans, trend = NULL, secondary = NULL, tertiary = NULL,
  legend = FALSE, xlab = "Time (h)", ylab = expression(Phi),
  xlim = NULL, ylim = NULL, xbreaks = NULL, ybreaks = NULL,
  lin.secon = FALSE, sec.trend = "spline", span = 0.75,
  explicit = FALSE, size = 3, plot = TRUE, bw = FALSE, srs = NULL)

Arguments

trans

List of data frames with the complete transport information of interest species. Must be generated using conc2frac. This is the only non-optional parameter.

trend

List of Non-linear regression models of the main species transport profil. Generated using transTrend.

secondary

List of secondary species transport data frame (see conc2frac).

tertiary

List of tertiary species transport data frame (see conc2frac).

legend

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

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.

lin.secon

Deprecated. Use sec.trend = 'linear' instead.

sec.trend

Type of trend line to be used for secondary and tertiary species data. Default is 'spline' but 'linear', 'loess' and 'logarithmic' are also allowed.

span

Amount of smoothing when sec.tred = 'loess'. Is a value between 0 and 1. Default is 0.75

explicit

Logical, if FALSE, the default, transport informations are averaged and plotted using errorbars that with the standard deviation values. If TRUE, all provided data is plotted in the same graphic.

size

Size used for points in the plot.

plot

Logical. If TRUE, the default, the plot is printed in the current graphical device.

bw

Logical, if FALSE, the default, a color version of the plot is given. If a black and white version is required, it must be set to TRUE.

srs

Deprecated.

Details

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.

Value

Plot of replicated transport profiles including all provided species

Author(s)

Cristhian Paredes, craparedesca@unal.edu.co

Eduardo Rodriguez de San Miguel, erdsmg@unam.mx

References

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
  data(seawaterLiNaK)
  # Transport data frames and transport NLS regresions must be in lists
  lithium   <- list(seawaterLiNaK$Lithium.1, seawaterLiNaK$Lithium.2)
  sodium    <- list(seawaterLiNaK$Sodium.1, seawaterLiNaK$Sodium.2)
  potassium <- list(seawaterLiNaK$Potassium.1, seawaterLiNaK$Potassium.2)
  trend     <- list(transTrend(trans = seawaterLiNaK$Lithium.1),
                    transTrend(trans = seawaterLiNaK$Lithium.2))

  transPlotWR(trans = lithium, trend = trend, secondary = sodium,
              tertiary = potassium, bw = TRUE)

transmem documentation built on July 1, 2020, 10:38 p.m.