These plot() methods return a ggplot object with an annotated plot of
an object of a class derived from generic_spct, of a class derived
from generic_mspct or of an object of class waveband for which
an autoplot() method exists. They are implemented as wrappers of
autoplot(). The generic for plot() is defined by base R and
specializations for objects of diverse classes are provided various packages
and R itself. The generic for autoplot() is defined by package
'ggplot2'.
Arguments
- x
An R object derived from class
generic_spctor derived from classgeneric_mspct.- ...
Named arguments passed to
autoplot()methods.
Deprecation warning!
These plot() specializatioms are provided for backwards
compatibility, but all new or updated code should call autoplot()
instead of plot() on objects of spectral and waveband classes defined
in package 'photobiology'.
These methods add support for plot() specializations as these
specialization were provided by package 'ggspectra' years ago, before
'ggplot2' had an autoplot() generic. As these methods return ggplots
autoplot is a more suitable name for them.


