find_idfactor {ggspectra} | R Documentation |
Find 'idfactor'
Description
Find if an 'idfactor' is present and needed in the plot and assemble a suitable plot layer to handle it.
Usage
find_idfactor(
spct,
idfactor,
annotations,
facets = FALSE,
num.columns = 1L,
...
)
Arguments
spct |
generic_spct or derived object |
idfactor |
character Name of an index column in data holding a
|
annotations |
a character vector. |
facets |
logical or numeric Flag indicating if facets are to be created when the data contains multiple spectra, if numeric the number of columns. |
num.columns |
numeric Number of data columns from multiple scans. Relevant
only to |
... |
currently not used. |
Value
A list object containing a list of ggplot components and a vector of annotations names as members.