transPlotWR {transmem} | R Documentation |
Plots transport profiles of replicated experiments
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
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 |
trend |
List of Non-linear regression models of the main species
transport profil. Generated using |
secondary |
List of secondary species transport data frame (see
|
tertiary |
List of tertiary species transport data frame (see
|
legend |
Logical. If |
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 |
Type of trend line to be used for secondary and tertiary
species data. Default is |
span |
Amount of smoothing when |
explicit |
Logical, if |
size |
Size used for points in the plot. |
plot |
Logical. If |
bw |
Logical, if |
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
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)