plotAES: Plot Atomic Emission Spectrum

Description Usage Arguments Value Examples

View source: R/plotAES.R

Description

Plots a simulated atomic emission spectrum with the absolute or relative emission intensity on the y-axis and wavelength on the x-axis. The plot is constructed using data stored in an object created using simulateAES.

Usage

1
2
3
4
5
6
7
plotAES(
  file,
  lambda.min = 390,
  lambda.max = 700,
  signal_type = c("relative", "absolute"),
  main_title = NULL
)

Arguments

file

The name of an object, created by simulateAES, that contains the results of a simulation.

lambda.min

The minimum wavelength (in nm) for the x-axis; defaults to 390 nm, which is the lower limit.

lambda.max

The maximum wavelength (in nm) for tye x-axis; defaults to 700 nm, which is the upper limit.

signal_type

How the emission is scaled on the y-axis; one of "relative", which scales the y-axis to a maximum value of 1, or "absolute", which scales the y-axis using the actual emission intensities. Defaults to "relative".

main_title

An optional main title. If NULL, then a default title gives the element's atomic symbol, the temperature, and the partition model.

Value

Returns a plot of the element's simulated atomic emission spectrum.

Examples

1
2
3
oxygen = simulateAES(atom = "oxygen", temperature = 4000, width = 0.2)
plotAES(file = oxygen, signal_type = "relative",
    main_title = "Element: Oxygen, Temperature: 4000")

dtharvey/atomicEmission documentation built on July 11, 2021, 2 p.m.