|
|
@ -5,8 +5,8 @@ |
|
|
|
\title{ggplot2 wrapper for extended spectra plotting} |
|
|
|
\usage{ |
|
|
|
plot_spc_ext(spc_tbl, spc_tbl_l = NULL, lcols_spc = "spc", |
|
|
|
lcol_measure = NULL, lcol_measure_col_direction = -1, |
|
|
|
lcol_measure_col_palette = "Spectral", spc_id = "unique_id", |
|
|
|
lcol_measure = NULL, lcol_measure_col_palette = "Spectral", |
|
|
|
lcol_measure_col_direction = -1, spc_id = "unique_id", |
|
|
|
group_id = "sample_id", group_id_order = TRUE, group_color = TRUE, |
|
|
|
group_color_palette = NULL, group_panel = TRUE, group_legend = FALSE, |
|
|
|
ncol = NULL, relabel_spc = TRUE, ylab = "Spectrum value", alpha = 0.5, |
|
|
@ -26,16 +26,16 @@ Default is \code{"spc"} (raw spectra).} |
|
|
|
of the measure columns. This argument is optional. Default is \code{NULL}, |
|
|
|
which does not extract an additional measure column.} |
|
|
|
|
|
|
|
\item{lcol_measure_col_direction}{Sets the the order of colours in the scale |
|
|
|
that is based on a measure column. Default is \code{-1} which reverses the |
|
|
|
scale. Argument is passed on to the function `ggplot2::sclae_colour_brewer()` |
|
|
|
as argument `direction`.} |
|
|
|
|
|
|
|
\item{lcol_measure_col_palette}{Palette value supplied to |
|
|
|
`ggplot::scale_colour_brewer()`. Default is `"Spectral"`, but you can set |
|
|
|
it to the default argument `1` (will use |
|
|
|
`scale_colour_brewer(..., palette = 1)`).} |
|
|
|
|
|
|
|
\item{lcol_measure_col_direction}{Sets the the order of colours in the scale |
|
|
|
that is based on a measure column. Default is \code{-1} which reverses the |
|
|
|
scale. Argument is passed on to the function `ggplot2::sclae_colour_brewer()` |
|
|
|
as argument `direction`.} |
|
|
|
|
|
|
|
\item{spc_id}{Character vector denoting column name for a unique spectrum ID. |
|
|
|
Default is \code{"unique_id"}.} |
|
|
|
|
|
|
|