Learn R Programming

rgr (version 1.1.15)

Applied Geochemistry EDA

Description

Geological Survey of Canada (GSC) functions for exploratory data analysis with applied geochemical data, with special application to the estimation of background ranges and identification of outliers, 'anomalies', to support mineral exploration and environmental studies. Additional functions are provided to support analytical data QA/QC, ANOVA for investigations of field sampling and analytical variability, and utility tasks. NOTE: function caplot() for concentration-area plots employs package 'akima', however, 'akima' is only licensed for not-for-profit use. Therefore, not-for-profit users of 'rgr' will have to independently make package 'akima' available through library(....); and use of function caplot() by for-profit users will fail.

Copy Link

Version

Install

install.packages('rgr')

Monthly Downloads

235

Version

1.1.15

License

GPL-2

Maintainer

Last Published

March 5th, 2018

Functions in rgr (1.1.15)

ad.plot1

Plot Results of Analytical Duplicate Analyses
bwplots.by.var

Plot Vertical Box-and-Whisker Plots for Variables
bxplot

Plot a Horizontal Boxplot or Box-and-Whisker Plot
display.ascii.o

Display the Windows Latin 1 Font Octal Table
gx.cnpplts.setup

Set Up and Display Symbolgy for function gx.cnpplts
display.lty

Display Available Line Styles and Colour Codes
ad.test

National Geochemical Reconnaissance survey QA/QC data
alr

Additive Log-Ratio (alr) transformation
caplot

Prepare a Concentration-Area (C-A) Plot
gx.eb

Computation of Empirical Balances
gx.ilr

Isometric Log-Ratio (ilr) transformation
cat2list

Divides Data into Subsets by Factor
expit

Inverse-logit transformation(s)
fences

Generate and Display Fence Values
fix.test.asis

Test Data for Function ltdl.fix.df
alts2dups

Create a Matrix of Duplicate Pairs from Sequential Data
framework.stats

Compile Framework/Subset Summary Statistics
anova1

Analysis of Variance (ANOVA)
clr

Centred Log-Ratio (clr) transformation
gx.ks.test

Kolmogorov-Smirnov test with ECDF Plot
gx.md.display

Function to Display Membership Probabilities and Other Relevant Data
cnpplt

Cumulative Normal Percentage Probability (CPP) Plot
gx.lm.vif

Estimate Variance Inflation Factosr (VIFs)
gx.md.plot

Function to Display Chi-square Plots of Mahalanobis Distances
fences.summary

Generate and Save Fence Values for Data Subsets
gx.2dproj.plot

Function to Display a Saved 2-d Projection Object
fix.test

Test Data for Function ltdl.fix.df
gx.mvalloc.print

Function to display the results of Multivariate Allocation
gx.md.plt0

Function to Display Chi-square plots of Mahalanobis Distances
gx.hist

Plot a Histogram
gx.add.chisq

Function to Add Fences to Chi-square Plots
gx.hypergeom

Compute Probabilities for Target Recognition
gx.ngr.skew

Estimate the Skewness of a Data Vector
gx.mvalloc

Function for Allocation on the basis of Multivariate Data
gx.mvalloc.closed

Function for Allocation on the basis of Multivariate Data for closed Compositional Data
anova2

Analysis of Variance (ANOVA), Alternate Input
bwplots

Plot Vertical Box-and-Whisker Plots
gx.pairs4parts

Display a Graphical Matrix for Parts of a Compositional Data Set
crm.plot

Plot Results of Control Reference Material (CRM) Analyses
gx.quantile

Estimate the Quantile for a Specified Fractile
gx.plot2parts

Display Plots for Two Parts from a Compositional Data Set
gx.pearson

Display Pearson Correlation Coefficients and their Significances
gx.runs

The Wald-Wolfowitz, ‘Runs’, Test
gx.scores

Function to Compute Scores on the Basis of Threshold Estimates
gx.sort.df

Function to Multi-Column Sort a Data Frame
crm.plot.new

Plot Results of Control Reference Material (CRM) Analyses Adding New Data
gx.robmva

Function to undertake a Robust Exploratory Multivariate Data Analysis
gx.spearman

Display Spearman Correlation Coefficients and their Significances
cutter

Function to Identify in Which Interval a Value Falls
gx.robmva.closed

Function to undertake a Robust Closed Data Multivariate EDA
df.test

Check for the Existence of a Data Frame
gx.sm

Display Robust ilr Stabilities and log-ratio Medians for Compositional Data
gx.adjr2

Function to compute Adjusted r-squared values
gx.symm.coords.mat

Create a Matrix of Symmetric Coordinates
gx.rqpca.save

Function to Save PCA Loadings and Scores as .csv files
gx.symm.coords.plot

Display a X-Y Plot, Scatterplot, of Symmetric Balances
logit

Logit transformation
kola.o

Kola Project O-horizon Soil Data
gx.sort

Function to Single Column Sort a Matrix or Data Frame
gx.rqpca.screeplot

Display a Scree Plot
gx.cnpplts

Multiple (max 9) Cumulative Normal Probability (CPP) plots
gx.ecdf

Emprical Cumulative Distribution Function (ECDF)
ogrady.mat2open

Lithogeochemical Data Set from the O'Grady Pluton, NWT, 1970
rng

Undertakes a Range Transformation on the Columns of a Matrix
orthonorm

Computation of an Orthonormal Basis Matrix
gx.stats

Function to Compute and Display Summary Statistics
gx.subset

Extracts a Subset of Rows from a Data Frame
gx.fractile

Estimate the Fractile for a Specified Quantile
shape

An EDA Graphical Summary
thplot2

Display a Thompson-Howarth Plot of Duplicate Measurements, Alternate Input
gx.summary2

Display a ten-line Summary Statistics Report
triples.test1

North American Geochemical Soil Landscapes Project QA/QC data
gx.symm.coords

Computation of Symmetric Coordinates
gx.symm.coords.r

Displays a Matrix of Correlation Coefficients based on Symmetric Balances
ad.plot3

Plot Results of Analytical Duplicate Analyses as Ratios
gx.md.print

Function to Display Membership Probabilities
ad.plot4

Plot Results of Analytical Duplicate Analyses as Ratios, Alternate Input
crm.test

National Geochemical Reconnaissance survey QA/QC data
gx.mf

Prepare a Concentration-Number (C-N) Plot
display.marks

Display Available Plotting Marks
gx.triples.aov

Carries out a 3-Level Staggered ANOVA and Estimates Variance Components
display.rainbow

Display the Colours of the Rainbow(36) Pallette
crm.test.new

Simulated National Geochemical Reconnaissance survey QA/QC data
framework.summary

Generate and Save Framework/Subset Summary Statistics
gx.triples.fgx

ANOVA to Estimate if ‘Triples’ are a Valid Subset
gx.t.test

t-test from Means, Standard Deviations and Sample Sizes
gx.2dproj

Function to Compute and Display 2-d Projections for Data Matrices
gx.quantiles

Estimate the Common Quantiles
ltdl.summary

Displays a Count of Negative and Coded Values and NAs for a Data Frame
gx.md.gait

Function for Multivariate Graphical Adaptive Interactive Trimming
gx.rma

Estimate the Coefficients of the Reduced Major Axis
gx.md.gait.closed

Function for Multivariate Graphical Adaptive Interactive Trimming with Compositional Data
map.eda8

Plot a Symbol Map of Data Based on their Percentiles
map.eda7

Plot a Symbol Map of Data Based on the Tukey Boxplot
rgr_1.1.15-package

Geological Survey of Canada Applied Geochemistry EDA
remove.na

Remove and Count NAs
map.tags

Plot a Map of Posted Values
tbplots.by.var

Plot Vertical Tukey Boxplots for Variables
gx.mva

Function to undertake an Exploratory Multivariate Data Analysis
gx.rqpca.plot

Function to Plot Principal Component Analysis Loadings and Scores
where.na

Identify Vector Elements or Data Frame/Matrix Rows with NAs
thplot1

Display a Thompson-Howarth Plot of Duplicate Measurements
gx.mva.closed

Function to undertake an Exploratory Multivariate Data Analysis on Compositional, geochemical data
wtd.sums

Function to Compute Weighted Sums
nockolds

The Nockolds average igneous plutonic rock compositions
ogrady

Lithogeochemical Data Set from the O'Grady Pluton, NWT, 1970
sind.mat2open

Sinding-Larsen Norwegian Stream Sediment Test Data Set
gx.rqpca.print

Function to Display PCA Loadings and Scores
gx.ngr.stats

Computes Summary Statistics for a NGR Report Table
triples.test2

North American Geochemical Soil Landscapes Project QA/QC data
gx.summary.mat

Displays Summary Statistics for a Matrix or Data Frame
syms

Function to Compute the Diameters of Proportional Symbols
var2fact

Rearranges Data for Variables as Factors
gx.summary1

Display a one-line Summary Statistics Report
gx.ngr.summary

Saves a NGR Report Summary Statistics Table to a .csv File
gx.vm

Display an Aitchison Variation Matrix for Compositional Data
gx.rotate

Function to Perform a Kaiser Varimax Rotaion
gx.rqpca.loadplot

Function to Graphically Display PCA Loadings
ilr

Isometric Log-Ratio (ilr) transformation
ltdl.fix

Replace Negative Values Representing Less Than Detects in a Vector
gx.summary

Compiles a Table of Summary Statistics
ltdl.fix.df

Replace Negative Values Representing Less Than Detects in a Data Frame
gx.summary.groups

Displays Summary Statistics for a Variable Grouped by a Factor
ms.data2

Measurement Variability Test Data
ms.data3

Measurement Variability Test Data
shape.alt

An Alternate EDA Graphical Summary
sind

Sinding-Larsen Norwegian Stream Sediment Test Data Set
ilr.stab

Compute the Robust ilr Stability for Two Parts of a Composition
xyplot.tags

Display a Plot of Posted Values for a Third Variable
xyplot.z

Display a Third Variable in a X-Y Plot using Proportional Symbols
inset

An EDA Graphical and Statistical Summary
inset.exporter

Saves an EDA Graphical and Statistical Summary
kola.c

Kola Project C-horizon Soil Data
map.z

Plot a Map of Data using Proportional Symbols
ms.data1

Measurement Variability Test Data
syms.pfunc

Function to Demonstrate the Effect of Different Values of p
xyplot.eda7

Display a Third Variable in a X-Y Plot using Tukey Boxplot Symbology
tbplots

Plot Vertical Tukey Boxplots
xyplot.eda8

Display a Third Variable in a X-Y Plot as Percentiles
ad.plot2

Plot Results of Analytical Duplicate Analyses, Alternate Input