Plots the specified traces from a list of chromatograms.
Usage
plot_chroms(
x,
lambdas,
idx,
xlim,
ylim,
xlab = "",
ylab = "Absorbance",
engine = c("base", "ggplot", "plotly"),
linewidth = 1,
show_legend = TRUE,
legend_position = "topright",
...
)
Arguments
- x
A list of chromatograms in matrix format (timepoints x wavelengths).
- lambdas
The wavelength(s) you wish to plot the trace at.
- idx
A vector representing the names or numerical indices of the chromatograms to plot.
- xlim
Range of x axis.
- ylim
Range of y axis.
- xlab
X label.
- ylab
Y label. Defaults to "Absorbance".
- engine
Plotting engine. Either
base
(matplot
),plotly
, orggplot2-package
.- linewidth
Line width.
- show_legend
Logical. Whether to display legend or not. Defaults to TRUE.
- legend_position
Position of legend.
- ...
Additional arguments to plotting function specified by
engine
.