plot_chroms | R Documentation |
Plots the specified traces from a list of chromatograms.
plot_chroms(
x,
lambdas,
idx,
xlim,
ylim,
xlab = "",
ylab = "Absorbance",
engine = c("base", "ggplot", "plotly"),
linewidth = 1,
show_legend = TRUE,
legend_position = "topright",
...
)
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 |
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 |
No return value, called for side effects.
Plots the traces of the specified chromatograms idx
at the specified
wavelengths lambdas
. Plots can be produced using base graphics, ggplot2,
or plotly, according to the value of engine
.
Ethan Bass
Other visualization functions:
boxplot.peak_table()
,
mirror_plot()
,
plot.peak_list()
,
plot.peak_table()
,
plot_all_spectra()
,
plot_spectrum()
,
scan_chrom()
data(Sa_pr)
plot_chroms(Sa_pr, idx = c(1:2), lambdas = c(210))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.