Learn R Programming

cdom (version 0.1.0)

spectra: CDOM absorption data.

Description

Simple absorption spectra used to test package's functions.

Usage

data(spectra)

Arguments

Format

A data frame with 711 rows and 26 variables

Details

  • wavelength. Wavelengths used for measurements (190-900 nm.)
  • Absorption

Examples

Run this code
library(ggplot2)
library(tidyr)
data("spectra")

spectra <- gather(spectra, sample, absorption, -wavelength)

ggplot(spectra, aes(x = wavelength, y = absorption, group = sample)) +
 geom_line(size = 0.1)

Run the code above in your browser using DataLab