ggspectra (version 0.3.1)

autoplot.generic_spct: Plot a spectrum.

Description

This method returns a ggplot object with an annotated plot of an object of a class derived from generic_spct or of a class derived from generic_mspct for which a plot() method exists.

Usage

# S3 method for generic_spct
autoplot(object, ...)

# S3 method for generic_mspct autoplot(object, ...)

# S3 method for waveband autoplot(object, ...)

Arguments

object

An R object derived from class generic_spct or derived from class generic_mspct.

...

Named arguments passed to plot() methods.

Value

a ggplot object.

Details

Support for autoplot() method for consistency with package 'ggplot2'. Please consult the documentation of the plot() methods for details about use of these autoplot methods. They are implemented as simple wrappers that forward the call to plot().

See Also

plot.calibration_spct, plot.cps_spct, plot.filter_spct, plot.raw_spct, plot.response_spct, plot.source_spct and plot.waveband.

Other plot functions: plot.calibration_spct, plot.cps_spct, plot.filter_spct, plot.object_spct, plot.raw_spct, plot.reflector_spct, plot.response_spct, plot.source_spct, plot.waveband

Examples

Run this code
# NOT RUN {
library(photobiology)
ggplot2::autoplot(sun.spct, annotations = "")

# }

Run the code above in your browser using DataCamp Workspace