| decay_series | R Documentation |
Given a starting isotope, show the decay chain all the way to reaching a stable isotope.
decay_series(
protons,
neutrons,
plot = TRUE,
add = FALSE,
n = c(),
box.size = 0.8,
arrows = TRUE,
draw.box = TRUE,
draw.symbol = TRUE,
grid.col = grey(0.75),
xlim = c(),
ylim = c(),
cex = 2,
offset = 0.5,
mar = c(3, 3, 0.5, 0.5),
mgp = c(1.5, 0.7, 0),
asp = 0,
talk = TRUE
)
protons |
The number of protons in the atom's nucleus. Alternatively, the name or symbol of an element can provided. |
neutrons |
The number of neutrons in the atom's nucleus. If left empty, the function will report the amounts of neutrons of the isotopes of the element in question. |
plot |
Plot the results. Defaults to TRUE. |
add |
Add data to an existing plot (instead of making a new plot). Defaults to FALSE. |
n |
Number of isotopes to draw, starting from the first isotope. Defaults to drawing all isotopes in the decay series. |
box.size |
Size of the box around the isotope symbols. Defaults to 0.9. |
arrows |
Whether or not to draw arrows between the parent and daughter isotopes. Defaults to TRUE. |
draw.box |
Whether or not to draw a box around the element. Defaults to TRUE. |
draw.symbol |
Whether or not to draw the element's symbol, e.g. 14C. Defaults to TRUE. |
grid.col |
The colour of the grid. Defaults to light grey, |
xlim |
Limits of the x axis. Calculated automatically by default. |
ylim |
Limits of the y axis. Calculated automatically by default. |
cex |
Controls how much of each isotope box is filled by the isotope's symbol (with superscript mass numbers). Values around 2–3 typically produce labels that occupy most of the box while remaining legible. Defaults to 2. |
offset |
Offset of the symbol within the isotope's box. Defaults to centre, 0.5. |
mar |
Margins around the plot. Defaults to mar=c(3,3,0.5,0.5) |
mgp |
Locations of the axis titles, labels and lines. Defaults to mgp=(1.5, 0.7, 0) |
asp |
If set to 1, plots the units of the horizontal and vertical axis at 1:1 proportion. |
talk |
Report the results. Defaults to TRUE. |
The 'atom' function is called for each of the isotopes in the decay series, and a plot is made.
Maarten Blaauw
decay_series("U", 146) # U-238 series
decay_series("U", 143) # U-235 series
decay_series("Th", 142) # Thorium series
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.