plot_spc | R Documentation |
Plot spectra from tibble spectra objects.
plot_spc(spc_tbl, spc_tbl_2 = NULL,
x_unit = "wavenumber",
y = "spc", by = "unique_id",
graph_id_1 = "Set 1", graph_id_2 = "Set 2",
graph_id_1_col = "black", graph_id_2_col = "red",
xlab = expression(paste("Wavenumber [", cm^-1, "]")),
ylab = "Absorbance",
alpha = 0.2, legend = TRUE)
spc_tbl |
Tibble that contains the first set of spectra to plot as list-column |
spc_tbl_2 |
Tibble that contains the second set of spectra (optional) to plot as list-column. |
x_unit |
Character string describing the x axis unit. Default is
|
y |
Character string of list-column name in tibble where spectra of desired type are extracted to plot. |
by |
Character string of column that is used to group the spectra.
Default is |
graph_id_1 |
Character string used for grouping the first spectra set
( |
graph_id_2 |
Character string used for grouping the second spectra set
( |
graph_id_1_col |
Character string for the colour of the first spectra
set. Default is |
graph_id_2_col |
Character string for the colour of the first spectra
set. Default is |
xlab |
Character string or mathematical expression
(use |
ylab |
Character string or mathematical expression
(use |
alpha |
Double in between 0 and 1. Sets the transparency for the plotted spectra lines. |
legend |
Logical whether to plot a legend for the spectra describing
its name selected in arguments |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.