View source: R/common-plot-utils.R
find_idfactor | R Documentation |
Find if an 'idfactor' is present and build a suitable plot chuck.
find_idfactor(
spct,
idfactor,
annotations,
facets,
map.linetype,
num.columns = 1L,
...
)
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. |
map.linetype |
logical flag indicating that the id is to be mapped to the linetype aesthetic. |
num.columns |
numeric Number of data columns from multiple scans. Relevant
only to |
... |
currently not used. |
Implement facets and/or a mapping to linetype. The mapping to linetype is done only if the number of spectra is <= 13 because of the number of values available in the scale.
A list object containing a list of ggplot components and a vector of annotations names as members.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.