This R script formats and filters detrital zircon data using common methods, particularly useful for large datasets or compiled data. These include: calculating maximum depositional ages, calculating and filtering for concordance, excluding zircon rim data, exclduing data that have too large uncertainties, choosing the 'best age' (i.e. Pb207/Pb206 or Pb206/U238 age) based on age of data etc.
This R script uses detrital zircon and magmatic age data to produce a range of plots including Kernel Denisty Estimates (KDE) with coloured age ranges, Multidimensional Scaling (MDS) plots with pie chart symbols, and geographical maps with pie chart symbols. Inspired largely from the plots in the python package DetritalPy (https://github.com/grsharman/detritalPy) by Glenn R. Sharman.
Example data used in this script are from Armistead et al., in prep (compiled and published in PhD thesis 2019, Uni Adelaide)
These plots use magmatic data as proxies for potential sources of detrital zircons. These are coloured by age intervals for potential source regions (using magmatic data)
Formats detrital zircon data so that pie symbols representing the age distribution can be plotted onto a geographical map. Better/higher resolution maps can be produced in R, but I've just included a very basic version here.
This section using the 'Provenance' package by Pieter Vermeesch to extract coordinates from the MDS plot and plot each sample as a pie symbol using conventional ggplot() plotting.
This is my first upload to Github, please let me know if you run into any issues or have any feedback/suggestions! :)