Plug-in modules
The GCDkit is easily expandable by the users. Arguably the most versatile are the so-called Plugins, e.g. text files with R code stored in the subdirectory Plugin. These are all automatically executed (sourced) upon loading the new data set and typically define additional functions, accessible via newly appended menu items.
Standard modules
These come with the standard distribution of GCDkit. No extra installation is necessary, including required libraries, distributed within the GCDkit install file.
| Name | Does | Requires |
| SrNd.r |
Initial isotopic ratios, Nd model ages, plotting isochron diagrams, boxplot/stripplots and binary graphs involving the isotopic data... |
- |
| saturation.r |
Saturation temperatures for common accessories (zircon, apatite and monazite) as well as corresponding saturation levels of Zr, P and LREE (Watson and Harrison, 1983; Harrison and Watson, 1984; Bea et al., 1992; Pichavant et al., 1992; Montel, 1993). To this plugin is dedicated a separate web page. |
- |
| tetrad.r |
Calculates lathanide tetrad effect following the method of Irber (1999). |
- |
| isocon.r |
Implementation of isocon plot after Grant (1986, 2005) widely used for quantitative estimates of changes in mass/volume/concentration of elements or oxides in course of various open-system geochemical processes such as alteration or partial melting. |
- |
|
These libraries are a part of the current distribution of the GCDkit. |
||
User-defined modules
We sincerely hope that the GCDkit will start to grow also by user additions. In this context any feedback (bug reports, suggestions to further development, pieces of contributed code or even ready plugins) would be highly appreciated. If you intend to write a plugin, follow several simple rules:
-
All the numeric data are available in the numeric matrix
WRas soon as the data file is loaded into memory -
The rest is stored in the data frame
labels,including the plotting symbols (labels[,"Symbol"]) and colours (labels[,"Colours"]) -
Feel free to use the functions for selection of samples (
selectSamples()), a single (selectColumnLabel()) or multiple (selectColumnsLabels()) variables. Read the corresponding manual entries for the correct syntax -
If your function, say
foo,is to be attached to the menu system, use a construction analogous to:
winMenuAddItem("Data handling", "My function added to the system", "foo()") -
Examine carefully the existing plugins, e.g.
saturation.r
If your function is of wider interest, please share it with other colleagues, as much as we do results of our efforts. We would like to distribute the user-defined plugins on this page, so let us know!
|
my_plugin.r by John W Developer
(jdeveloper@r-project.org) |
This can be your plugin... |
