plot.exponential_fit: Plot a Fitted CDOM Exponential Curve

Description Usage Arguments Value Examples

View source: R/exponential.R

Description

Plot a Fitted CDOM Exponential Curve

Usage

1
2
## S3 method for class 'exponential_fit'
plot(x, ...)

Arguments

x

An object returned by cdom_exponential.

...

other arguments.

Value

A ggplot2 object.

Examples

1
2
3
4
5
6
7
8
library(ggplot2)

data(spectra)

fit <- cdom_exponential(spectra$wavelength, spectra$spc1, 350, 190, 900)
p <- plot(fit)
p
p + ggtitle("My super fit")

PMassicotte/cdom documentation built on April 14, 2020, 4:38 p.m.