GithubHelp home page GithubHelp logo

provenance's Introduction

R scripts

Collection of dataset and R scripts usefull for provenance analysis and others geological researchs.

Datasets for classification and discrimination diagrams

Create geological fields in ternary diagrams with ggplot or ggtern package for R. Binary and ternary plots are extensively used to classify rocks and sediments or identify tectonic settings of the detrital source area. References are indicated in the preambule. The following datasets are available:

  • SandstonesTernary: mainly based on framework composition, the dataset provides a collection of ternary diagram for sandstone classification. Most of them were created between the 1950's and 1970's years.
  • SandstonesBiplot: biplot diagrams involve major and trace elements concentrations.
  • ProvenanceTernary: corresponds to the Dickinson ternary diagram identifying the tectonic settings of the detrital source (QFL and QmFLt diagrams).
  • ProvenanceBiplot: source rocks are identified applying a discriminant function on major elements concentration.
  • MagmaticBiplot and MagmaticTernary provide a collection of classification diagrams for felsic to ultramafic rocks based on framework composition or major elements.
  • MineralTernary: comprises a serie of discrimination diagram for dedicated mineral phases including garnet, pyroxene.

Integration of fields can be basically done as following for ggplot:

MagmaticBiplot <- read.csv("path/to/MagmaticBiplot.csv", header = TRUE, comment.char = "#", dec = ".")

ggplot() +
   geom_line(data=subset(MagmaticBiplot, reference=="LeBas1986"), aes(x, y, group=line)) +
   geom_line(data=df, aes(SiO2, Na2O+K2O))

and for ggtern:

ProvenanceTernary <- read.csv("path/to/ProvenanceTernary.csv", header = TRUE, comment.char = "#", dec = ".")

ggtern() +
   geom_line(data=subset(ProvenanceTernary, type=="QmFLt"), aes(x, y, z, group=line)) +
   geom_line(data=df, aes(F, Qm, Lt))

Todo

  • feldspar ternary

GeoJSON.R

Convert outcrops location in .csv file to GeoJSON file to display geographical datasets on geo-referenced maps (Mapbox). Script from Oscar Perpiñan Lamigueiro (http://procomun.wordpress.com/2013/09/20/r-geojson-and-github/).

provenance's People

Contributors

jragusa avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.