Learn R Programming

CHNOSZ (version 0.9-7)

examples: Run examples from the documentation

Description

Run the examples contained in each of the documentation topics.

Usage

examples(do.png = FALSE)
  longex(which)

Arguments

do.png
logical, generate PNG files for the plots?
which
character, which example to run.

Details

examples runs all the examples in the documentation for the package. The example function is called for each topic with ask set to FALSE (so all of the figures are shown without prompting the user). If do.png is TRUE, the plots in the examples are saved as png files having names beginning with the name of each of the help topics.

longex is a function that contains code to run various other examples that are not contained in the documentation. The example to run is specified by which. The available examples are listed below. See the comments in the source code for more information about each one.

ll{ sources cross-check the reference list with the thermodynamic database copper an Eh-pH diagram for the copper-water-glycine system cordierite equilibrium constant of hydrous cordierite dehydration phosphate phosphate speciation with pH, temperature and ionic strength nucleobase relative stabilities of nucleobases and some amino acids pie pie charts comparing relative abundances of organisms (Spear et al., 2005) and model proteins in metastable equilibrium orp oxidation-reduction potential of redox standards as a function of temperature findit detailed example of usage of findit using log-normal distribution as an objective co2ac activity of CO2 buffered by acetic acid; comparing affinity(return.buffer=TRUE) with diagram(what="CO2") }

References

Spear, J. R., Walker, J. J., McCollom, T. M. and Pace, N. R. (2005) Hydrogen and bioenergetics in the Yellowstone geothermal ecosystem. Proc. Natl. Acad. Sci. U. S. A. 102, 2555--2560. http://dx.doi.org/10.1073/pnas.0409574102

Examples

Run this code
data(thermo)
  longex(c("copper","orp"))

Run the code above in your browser using DataLab