classify {GCDkit} | R Documentation |
Classifies rocks using specified diagram.
classify(diagram = "NULL", grp = TRUE, labs = FALSE, source.sheet = TRUE, overlap = FALSE, X = x.data, Y = y.data, silent = FALSE, clas=sheet$d$t, ...)
diagram |
name of diagram to be used, see details for more info |
grp |
logical: if TRUE, results are assigned to the variable 'groups' |
labs |
logical: if TRUE, yes/no dialogue for results assignment into the matrix 'labels' appears |
source.sheet |
logical: if TRUE, the sheet for |
overlap |
logical: if TRUE, possible overlap between polygons of diagram is expected, and duplicate positive result for one sample is treated as polygon intersection |
X |
vector of values for abscissa |
Y |
vector of values for ordinate |
silent |
logical: if TRUE, informative outputs are reduced to minimum |
clas |
classification template to be used |
... |
any additional graphical parameters |
Function looks for the name of the polygon within the classification diagram,
into which falls the rock analysis represented by the coordinates [x.data,y.data]
.
In some cases (TAS diagram, Winchester & Floyd's diagram) additional computations
are performed. The argument 'diagram
' may acquire one of following values:
'AFM', 'PeceTaylor', 'Shand', 'TAS', 'CoxPlut', 'CoxVolc', 'Jensen', 'LarochePlut', 'LarocheVolc', 'WinFloyd1', 'WinFloyd2','TASMiddlemostPlut', 'TASMiddlemostVolc', 'DebonPQ', 'DebonBA', 'MiddlemostPlut', 'QAPFPlut', 'QAPFVolc', 'OConnorPlut', 'QAPFVolc','OConnorVolc', 'Miyashiro', 'Hastie', 'Pearce1996', 'Villaseca', 'NaAlK'.
The function is based on the sp package.
Vector of resulting rock names is stored in a variable 'results'.
If 'grp = TRUE
' results are also assigned to the 'groups
' and
'grouping
' is set to -1 (as if called from the menu 'Data handling'
).
If rock projection falls on the boundary between two or more fields, rock names
in question are merged together with comment 'boundary between ...'.
The sp package was written by Edzer Pebesma, Roger Bivand and others.
Vojtech Erban, vojtech.erban@geology.cz
AFM
,
PeceTaylor
,
Shand
,
NaAlK
,
TAS
,
Cox
,
TASMiddlemost
,
Jensen
,
Laroche
,
WinFloyd1
,
WinFloyd2
,
DebonPQ
,
DebonBA
,
Middlemost
,
QAPF
,
OConnor
Miyashiro
Hastie
Pearce1996
Villaseca