Learn R Programming

SpecHelpers (version 0.3.1)

emSpectrum: Plot a pretty electromagnetic spectrum

Description

This function plots an annotated electromagnetic spectrum. There are options to include annotations about the molecular effects and/or typical applications in technology.

Usage

emSpectrum(molecular = TRUE, applications = TRUE)

Value

None. Side effect is a plot.

Arguments

molecular

Logical. Add annotations about molecular effects?

applications

Logical. Add annotations about applications?

Author

Bryan A. Hanson, DePauw University. hanson@depauw.edu

Details

Obviously not to scale, but hopefully aesthetically pleasing!

Examples

Run this code
dev.new(width = 10.5, height = 3)
emSpectrum()
emSpectrum(molecular = FALSE, applications = FALSE)
dev.off()

Run the code above in your browser using DataLab