Learn R Programming

⚠️There's a newer version (1.1.15) of this package.Take me there.

rgr (version 1.1.7)

The GSC Applied Geochemistry EDA Package

Description

Geological Survey of Canada (GSC) R 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 both environmental studies and mineral exploration. Additionally, there are functions to support analytical data QA/QC, ANOVA for investigations of field sampling and analytical variability, and utility tasks.

Copy Link

Version

Install

install.packages('rgr')

Monthly Downloads

299

Version

1.1.7

License

GPL-2

Maintainer

Robert G Garrett

Last Published

June 1st, 2012

Functions in rgr (1.1.7)

gx.ecdf

Emprical Cumulative Distribution Function (ECDF)
gx.2dproj.plot

Function to Display a Saved 2-D Projection Object
gx.adjr2

Function to compute Adjusted r-squared values
gx.summary.mat

Displays Summary Statistics for a Matrix or Data Frame
bxplot

Plot a Horizontal Boxplot or Box-and-Whisker Plot
gx.hypergeom

Compute Probabilities for Target Recognition
gx.cnpplts

Multiple (max 9) Cumulative Normal Probability (CPP) plots
framework.stats

Compile Framework/Subset Summary Statistics
thplot1

Display a Thompson-Howarth Plot of Duplicate Measurements
gx.mvalloc

Function for Allocation on the basis of Multivariate Data
xyplot.z

Display a Third Variable in a X-Y Plot using Proportional Symbols
gx.sm

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

Compute the Robust ilr Stability for Two Parts of a Composition
crm.plot

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

Display an Aitchison Variation Matrix for Compositional Data
alr

Additive Log-Ratio (alr) transformation
gx.triples.fgx

ANOVA to Estimate if Triples are a Valid Subset
gx.ks.test

Kolmogorov-Smirnov test with ECDF Plot
gx.add.chisq

Function to Add Fences to Chi-square Plots
anova2

Analysis of Variance (ANOVA), Alternate Input
clr

Centred Log-Ratio (clr) transformation
gx.robmva

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

Display Spearman Correlation Coefficients and their Significances
gx.cnpplts.setup

Set Up and Display Symbolgy for function gx.cnpplts
bwplots.by.var

Plot Vertical Box-and-Whisker Plots for Variables
gx.runs

The Wald-Wolfowitz, Runs, Test
gx.md.gait

Function for Multivariate Graphical Adaptive Interactive Trimming
remove.na

Remove and Count NAs
gx.mva.closed

Function to undertake an Exploratory Multivariate Data Analysis on Compositional, geochemical data
ogrady

Lithogeochemical Data Set from the O'Grady Pluton, NWT, 1970
gx.rma

Estimate the Coefficients of the Reduced Major Axis
display.ascii.o

Display the Windows Latin 1 Font Octal Table
ad.test

National Geochemical Reconnaissance survey QA/QC data
display.marks

Display Available Plotting Marks
ltdl.fix.df

Replace Negative Values Representing Less Than Detects in a Data Frame
gx.robmva.closed

Function to undertake a Robust Closed Data Multivariate EDA
tbplots

Plot Vertical Tukey Boxplots
rng

Undertakes a Range Transformation on the Columns of a Matrix
syms

Function to Compute the Diameters of Proportional Symbols
map.eda8

Plot a Symbol Map of Data Based on their Percentiles
thplot2

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

Function to Display PCA Loadings and Scores
wtd.sums

Function to Compute Weighted Sums
inset.exporter

Saves an EDA Graphical and Statistical Summary
display.lty

Display Available Line Styles and Colour Codes
kola.o

Kola Project O-horizon Soil Data
where.na

Identify Vector Elements or Data Frame/Matrix Rows with NAs
gx.md.plt0

Function to Display Chi-square plots of Mahalanobis Distances
crm.test

National Geochemical Reconnaissance survey QA/QC data
gx.plot2parts

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

Function to Graphically Display PCA Loadings
gx.summary

Compiles a Table of Summary Statistics
gx.stats

Function to Compute and Display Summary Statistics
ad.plot2

Plot Results of Analytical Duplicate Analyses, Alternate Input
gx.summary.groups

Displays Summary Statistics for a Variable Grouped by a Factor
ad.plot1

Plot Results of Analytical Duplicate Analyses
triples.test2

North American Geochemical Soil Landscapes Project QA/QC data
gx.rqpca.plot

Function to Plot Principal Component Analysis Loadings and Scores
gx.triples.aov

Carries out a 3-Level Staggered ANOVA and Estimates Variance Components
gx.fractile

Estimate the Fractile for a Specified Quantile
inset

An EDA Graphical and Statistical Summary
rgr_1.1.7-package

The GSC (Geological Survey of Canada) Applied Geochemistry EDA Package
gx.rqpca.screeplot

Display a Scree Plot
sind.mat2open

Sinding-Larsen Norwegian Stream Sediment Test Data Set
ogrady.mat2open

Lithogeochemical Data Set from the O'Grady Pluton, NWT, 1970
gx.mva

Function to undertake an Exploratory Multivariate Data Analysis
gx.sort.df

Function to Multi-Column Sort a Data Frame
gx.pairs4parts

Display a Graphical Matrix for Parts of a Compositional Data Set
anova1

Analysis of Variance (ANOVA)
xyplot.tags

Display a Plot of Posted Values for a Third Variable
cutter

Function to Identify in Which Interval a Value Falls
df.test

Check for the Existence of a Data Frame
gx.md.gait.closed

Function for Multivariate Graphical Adaptive Interactive Trimming with Compositional Data
cnpplt

Cumulative Normal Percentage Probability (CPP) Plot
framework.summary

Generate and Save Framework/Subset Summary Statistics
fix.test.asis

Test Data for Function ltdl.fix.df
gx.md.display

Function to Display Membership Probabilities and Other Relevant Data
gx.pearson

Display Pearson Correlation Coefficients and their Significances
gx.subset

Extracts a Subset of Rows from a Data Frame
kola.c

Kola Project C-horizon Soil Data
cat2list

Divides Data into Subsets by Factor
gx.md.print

Function to Display Membership Probabilities
fences.summary

Generate and Save Fence Values for Data Subsets
ilr

Isometric Log-Ratio (ilr) transformation
logit

Logit transformation
ms.data1

Measurement Variability Test Data
gx.2dproj

Function to Compute and Display 2-d Projections for Data Matrices
map.tags

Plot a Map of Posted Values
triples.test1

North American Geochemical Soil Landscapes Project QA/QC data
fix.test

Test Data for Function ltdl.fix.df
fences

Generate and Display Fence Values
gx.hist

Plot a Histogram
gx.lm.vif

Estimate Variance Inflation Factosr (VIFs)
bwplots

Plot Vertical Box-and-Whisker Plots
gx.rotate

Function to Perform a Kaiser Varimax Rotaion
gx.quantile

Estimate the Quantile for a Specified Fractile
map.eda7

Plot a Symbol Map of Data Based on the Tukey Boxplot
map.z

Plot a Map of Data using Proportional Symbols
ms.data3

Measurement Variability Test Data
gx.summary2

Display a ten-line Summary Statistics Report
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
caplot

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

Function to Single Column Sort a Matrix or Data Frame
ms.data2

Measurement Variability Test Data
var2fact

Rearranges Data for Variables as Factors
xyplot.eda8

Display a Third Variable in a X-Y Plot as Percentiles
display.rainbow

Display the Colours of the Rainbow(36) Pallette
gx.md.plot

Function to Display Chi-square Plots of Mahalanobis Distances
ltdl.fix

Replace Negative Values Representing Less Than Detects in a Vector
sind

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

Function to display the results of Multivariate Allocation
gx.mvalloc.closed

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

Display a one-line Summary Statistics Report
shape

An EDA Graphical Summary
tbplots.by.var

Plot Vertical Tukey Boxplots for Variables
expit

Inverse-logit transformation(s)
orthonorm

Computation of an Orthonormal Basis Matrix