C1 Chondrite.
Reference | Sun, S-S, McDonough, WF Chemical and isotopic systematics of oceanic basalts: implications for mantle composition and processes, 1989 [ref] |
Data | bulk |
Input | ppm |
require('ggplot2'); cmp <- read.csv("constants_oceanic_basalts_compositions.csv", sep=";", stringsAsFactors=F); spdgrams.ree_c1_chondrite <- function(ppm_data, el_order = NULL) { ns <- el_order; if (is.null(el_order)) { ns <- c('Cs', 'Rb', 'Ba', 'Th', 'U', 'Nb', 'Ta', 'La', 'Ce', 'Pb', 'Pr', 'Sr', 'Nd', 'Zr', 'Hf', 'Sm', 'Eu', 'Gd', 'Tb', 'Dy', 'Y', 'Ho', 'Er', 'Tm', 'Yb', 'Lu'); } pmsc <- c(); for (n in ns) pmsc <- c(pmsc, subset(cmp, element == n)$c1_chondrite); ds <- selectNames(ppm_data,c(paste0(ns,'_ppm'))); names(ds) <- ns; ret <- c(); values <- cbind(ppm_data$Name, rowApply(`/`,ds,pmsc)); names(values)[1] <- 'Name'; ret$values <- values; ret$grades <- ns; ret$labels <- c('REE', 'Sample/C1 Chondrite'); return(ret); }