Learn R Programming

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

geostats (version 1.5)

An Introduction to Statistics for Geoscientists

Description

A collection of datasets and simplified functions for an introductory (geo)statistics module at University College London. Provides functionality for compositional, directional and spatial data, including ternary diagrams, Wulff and Schmidt stereonets, and ordinary kriging interpolation. Implements logistic and (additive and centred) logratio transformations. Computes vector averages and concentration parameters for the von-Mises distribution. Includes a collection of natural and synthetic fractals, and a simulator for deterministic chaos using a magnetic pendulum example. The main purpose of these functions is pedagogical. Researchers can find more complete alternatives for these tools in other packages such as 'compositions', 'robCompositions', 'sp', 'gstat' and 'RFOC'. All the functions are written in plain R, with no compiled code and a minimal number of dependencies. Theoretical background and worked examples are available at .

Copy Link

Version

Install

install.packages('geostats')

Monthly Downloads

422

Version

1.5

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Pieter Vermeesch

Last Published

August 13th, 2022

Functions in geostats (1.5)

clasts

clast size data
fractaldim

calculate the fractal dimension
fractures

fractures
circle.plot

plot circular data
circle.points

add points to a circular plot
rbsr

Rb-Sr data
rwyxz

Spurious correlation
logit

logistic transformation
Rbar2kappa

\(\bar{R}\) to \(\kappa\) conversion
alr

additive logratio transformation
major

composition of Namib dune sand
declustered

declustered earthquake data
stereonet

stereonet
meuse

Meuse river data set
meanangle

mean angle
earthquakes

earthquake data
striations

directions of glacial striations
ternary

ternary diagrams
skew

calculate the skewness of a dataset
test

composition of oceanic basalts
sizefrequency

calculate the size-frequency distribution of things
porosity

porosity data
kriging

kriging
ksdist

Kolmogorov-Smirnov distance matrix
randy

generate bivariate random data
Mode

get the mode of a dataset
colourplot

colour plot
worldpop

world population
exp

exponential transformation
countQuakes

count the number of earthquakes per year
cantor

Cantor set
xyz2xy

get x,y plot coordinates of ternary data
boxcount

box counting
pH

pH data
ellipse

ellipse
clr

centred logratio transformation
palaeomag

palaeomagnetic data
fault

fault orientation data
pop

pop
pendulum

3-magnet pendulum experiment
training

composition of oceanic basalts
forams

foram count data
vonMises

von Mises distribution
semivariogram

semivariogram
sierpinski

Sierpinski carpet
geostats

library(geostats)
koch

Koch snowflake
york

Linear regression of X,Y-variables with correlated errors
gutenberg

create a Gutenberg-Richter plot
hills

hills
AFM

AFM data
Finland

Finnish lake data
Britain

British coast
FAM

A-F-M data
Corsica

rivers on Corsica
DZ

detrital zircon U-Pb data
ACNK

A-CN-K compositions
Rbar

calculate \(\bar{R}\)
PCA2D

Principal Component Analysis of 2D data