Description Usage Arguments Value Examples
Plots an element's simulated atomic emission or atomic
absorption line spectrum. The lines are taken from an object
created using simulateAES. Atomic absorption spectra
are displayed as a set of black lines superimposed on a
background that shows the spectrum of visible electromagnetic
radiation. Atomic emission spectra are displayed as set of
lines, each of which has a color that matches its wavelength,
superimosed on either a white or a black background.
1 2 3 4 5 6 7 8 9 |
file |
The name of an object, created by
|
lambda.min |
The minimum wavelength (in nm) for scaling the x-axis; defaults to 390 nm, which is the lower limit. |
lambda.max |
The maximum wavelength (in nm) for scaling the x-axis; defaults to 700 nm, which is the upper limit. |
spectrum_type |
Type of line spectrum, either
|
emission_bg |
For an emission spectrum, choice of
background color as |
scale_emission |
Logical value that determines whether
the transparency of an emission line is scaled to the
emission line's relative intensity. Defaults to
|
main_title |
An optional main title. If |
Returns a plot of the element's atomic emission line spectrum or the element's atomic absorption line spectrum.
1 2 3 4 5 6 7 8 9 | hydrogen = simulateAES(atom = "H")
plotLines(file = hydrogen, spectrum_type = "emission",
emission_bg = "white", scale_emission = TRUE)
plotLines(file = hydrogen, spectrum_type = "emission",
emission_bg = "white", scale_emission = FALSE)
plotLines(file = hydrogen, spectrum_type = "emission",
emission_bg = "black", scale_emission = FALSE)
plotLines(file = hydrogen, spectrum_type = "absorbance",
emission_bg = "white", scale_emission = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.