pairsCorr {GCDkit} | R Documentation |
Plots a matrix of scatterplots in the lower panel and one of other pre-defined panel functions in the upper.
pairsCorr(elems=NULL,pch=NULL,col=NULL,upper.panel="panel.cor",...) pairsMjr(pch=NULL,col=NULL,upper.panel="panel.cor",...) pairsTrc(pch=NULL,col=NULL,upper.panel="panel.cor",...)
elems |
list of desired elements/oxides |
pch |
plotting symbols |
col |
colours |
upper.panel |
character; name of the function to be used for the upper plate |
... |
any further parameters to the function |
The samples can be selected based on combination of three searching mechanisms
(by sample name/label, range or a Boolean condition) - see
selectSamples
for details.
Even though a list of major elements is assumed as a default, different
variables can be specified by the function 'selectColumnsLabels
'.
In the specification of the variables can be used also arithmetic expressions,
see calcCore
for the correct syntax.
The upper panels to choose from are:
Parameter | Function | Explanation |
'panel.corr ' | cor | Prints correlations, with size proportional to the correlations; |
'panel.cov ' | cov | Prints covariances; |
'panel.smooth ' | lowess | Fits smooth trendlines; |
'panel.hist ' | hist | Plots frequency histograms. |
Returns a variable 'results
' with the outcome of the function
used for the upper panel construction
(cor for 'panel.corr
' or cov for 'panel.cov
').
Vojtěch Janoušek, vojtech.janousek@geology.cz
data(blatna) accessVar("blatna") pairsCorr(LILE) pairsCorr(LILE,pch="+",col="darkgreen",cex.labels=3,upper.panel="panel.smooth") pairsMjr(pch=15,col="red") pairsTrc(pch=15,col="red") # user-defined list my.elems<-c("Na2O/K2O","Rb","Sr","Ba") pairsCorr(my.elems,col="darkblue")