Harker's diagramm SiO2 - CaO. Nomolized by oxides sum.
Reference | Harker, Alfred The natural history of igneous rocks, 1909 [ref] |
Data | bulk |
Input | Na2O_wtp, MgO_wtp, Al2O3_wtp, SiO2_wtp, P2O5_wtp, K2O_wtp, CaO_wtp, TiO2_wtp, MnO_wtp, Fe2O3_wtp |
classifydiag.harker_si_ca <- function (wtp_data, ...) { ds <- selectNames(wtp_data, c('Name','Na2O_wtp', 'MgO_wtp', 'Al2O3_wtp', 'SiO2_wtp', 'P2O5_wtp', 'K2O_wtp', 'CaO_wtp', 'TiO2_wtp', 'MnO_wtp', 'Fe2O3_wtp')); norm_sum <- rowSums(ds[,c('Na2O_wtp', 'MgO_wtp', 'Al2O3_wtp', 'SiO2_wtp', 'P2O5_wtp', 'K2O_wtp', 'CaO_wtp', 'TiO2_wtp', 'MnO_wtp', 'Fe2O3_wtp')]); pts <- data.frame(Name = ds$Name, X = ds$SiO2_wtp*100/norm_sum, Y = ds$CaO_wtp*100/norm_sum); labels <- c("SiO2", "CaO"); ret <- c(); ret$type <- "diagram"; ret$points <- pts; ret$labels <- labels; return(ret); }