Starting GCDKit
Starting GCDKit
Starting GCDKit
© 2000-2006
Vojtech Janousek, Czech Geological Survey;
Colin M. Farrow, University of Glasgow;
Vojtech Erban, Czech Geological Survey
http://www.gla.ac.uk/gcdkit
User’s Guide to version 2.1.1 (1 April 2006)
SiO2, TiO2, Al2O3, Fe2O3, FeO, MnO, MgO, CaO, Na2O, FeOt, Fe2O3t, Li2O, mg#, Li,
Rb, Cs, Be, Sr, Ba, Sc, Y, Ti, Zr, Hf, V, Nb, Ta, Cr, Mo, W, Re, Ru, Os, Co, Rh, Ir, Ni, Pd,
Pt, Cu, Ag, Au, Zn, Cd, B, Ga, In, Tl, C, Ge, Sn, Pb, P, As, Sb, Bi, S, Se, Te, F, Cl, Br, I, At,
La, Ce, Pr, Nd, Pm, Sm, Eu, Gd, Tb, Dy, Ho, Er, Tm, Yb, Lu.
Upon loading, all the completely empty columns are removed first. Any non-numeric items
found in a data column with one of the names listed in the above dictionary are replaced by
'NA' automatically. At the next stage all fully numeric data columns are stored in a numeric
data matrix WR. For any missing major- and minor-element data (SiO2, TiO2, Al2O3, Fe2O3,
FeO, MnO, MgO, CaO, Na2O, K2O, H2O.PLUS, CO2, P2O5, F, S), an empty (NA) column
is created automatically.
The remaining, that is all at least partly textual data columns are transferred into a data
frame labels, in which are also stored codes of plotting symbols and their colours.
Subsequently, several extra parameters are calculated (if not provided already by the user),
namely concentrations of some elements from oxides (P, K, Ti, Ba, Sr) in ppm, total iron
expressed as ferrous oxide (FeOt), Shand’s indexes in molar % (A/NK, A/CNK) and
K2O/Na2O ratios. At the same time are the analyses recast to millications (data matrix milli)
and major-element analyses to anhydrous basis (data matrix anhydrous).
Calculations
All the calculation algorithms produce results that are temporarily stored in the memory, in
the variable (a vector, matrix or list) results. Before they are rewritten by the next calculation
procedure, they can be saved or appended to the current dataset for further processing (e.g.,
CIPW normative albite, quartz and orthoclase to be plotted in the Ab–Q–Or ternary).
Most of the normative recalculation algorithms have been adopted from an earlier
QuickBasic program NORMAN (Janousek, 2001). Currently are available R modules for
calculation of the CIPW norm, including the modification with biotite and hornblende
(Hutchison, 1974; 1975), Niggli Catanorm (Hutchison, 1974 and references therein), Niggli’s
cationic values (Niggli, 1948), multicationic parameters of the French authors (De La Roche
et al., 1980; Debon and Le Fort, 1983; 1988), improved Mesonorm for granitoid rocks
(Mielke and Winkler, 1979). As an optional outcome of the latter, implemented is a Q’–
ANOR binary chemically approximating the modal QAPF classification for the igneous
rocks (Streckeisen and Le Maitre, 1979).
The GCDkit provides a menu-driven interface to (a fraction of) statistical functions built
in R. These include simple descriptive statistics, histograms and boxplots (for the whole data
set or individual groups), correlation plots as well as more sophisticated methods of
multivariate statistics (cluster analysis and principal components).
Plotting
The plotting symbols and colours can be allocated, if need be independently of each other,
according to current grouping or any of the labels. If two distinct criteria for symbols and
colours are chosen, two legends are built.
The GCDkit produces publication quality plots in PostScript that can be easily imported
into other graphical or DTP package for further editing (simply right-click the graphical
window and select the desired format). All the plots can be saved simultaneously to
PostScript (Save all graphics to PS) or PDF (Save all graphics to PDF).
The strength of GCDkit consists in the wealth of build in plots most of which (the stand
alone, i.e. not multiple, diagrams) are defined as templates compatible with Figaro, a set of
graphical utilities for R.
Figaro provides means to create figure objects, which contain both the data and methods to
make changes to the figure (via the menu Plot editing). So, for example, the title can be
changed or the histogram fill colour altered and any changes are automatically made visible
on interactive devices. In addition one can zoom in and out of the data. Figaro objects
currently permit the editing of the text, font, size and colour of the main title, sub title and
axis labels; colour, size, and symbol of points; colour, line type, and width of lines. Thus
Figaro provides a degree of interactive editing before committing to hardcopy.
Future
Our long-term aim is to build a single, coherent and eventually platform-independent system
with high-level plotting capabilities for interpretation of whole-rock geochemical data that
would be straightforward to use by ordinary users but, at the same time, easily expandable by
the more demanding ones. In a nearest future GCDkit should be expanded by functions for
direct and inverse modelling of the main petrogenetic processes (fractional crystallization,
AFC, binary mixing). These are ready but not yet stable enough to be released.
Vojtech Janousek
[email protected]
http://www.gla.ac.uk/gcdkit
References
Carr, M. (1995). Program IgPet. Terra Softa, Somerset, New Jersey, U.S.A.
Clarke, D., Mengel, F., Coish, R. A. & Kosinowski, M. H. F. (1994). NewPet for DOS,
version 94.01.07. Department of Earth Sciences, Memorial University of
Newfoundland, Canada.
De La Roche, H., Leterrier, J., Grandclaude, P. & Marchal, M. (1980). A classification of
volcanic and plutonic rocks using R1R2-diagram and major element analyses – its
relationships with current nomenclature. Chemical Geology 29, 183–210.
Debon, F. & Le Fort, P. (1983). A chemical–mineralogical classification of common plutonic
rocks and associations. Transactions of the Royal Society of Edinburgh, Earth Sciences
73, 135–149.
Debon, F. & Le Fort, P. (1988). A cationic classification of common plutonic rocks and their
magmatic associations: principles, method, applications. Bulletin de Minéralogie 111,
493–510.
Hutchison, C. S. (1974). Laboratory Handbook of Petrographic Techniques. New York: John
Wiley & Sons.
Hutchison, C. S. (1975). The norm, its variations, their calculation and relationships.
Schweizerische mineralogische und petrografische Mitteilungen 55, 243–256.
Janoušek, V. (2001). Norman, a QuickBasic programme for petrochemical re-calculation of
whole-rock major-element analyses on IBM PC. Journal of the Czech Geological
Society 46, 9–13.
Mielke, P. & Winkler, H. G. F. (1979). Eine bessere Berechnung der Mesonorm für
granitische Gesteine. Neues Jahrbuch für Mineralogie, Monatshefte 471–480.
Niggli, P. (1948). Gesteine und Minerallagerstätten. Basel: Birkhäuser.
Petrelli, M., Poli, G., Perugini, D. & Peccerillo, A. (2005). PetroGraph: A new software to
visualize, model, and present geochemical data in igneous petrology. Geochemistry
Geophysics Geosystems 6, 1–15.
Richard L. R. (1995). MinPet: Mineralogical and Petrological Data Processing System,
Version 2.02. MinPet Geological Software, Québec, Canada.
Streckeisen, A. & Le Maitre, R. W. (1979). A chemical approximation to the modal QAPF
classification of the igneous rocks. Neues Jahrbuch für Mineralogie, Abhandlungen 136,
169–206.