Themes for ggtern package for ternary classification plots for mineral chemistry.
Minerals currently included (check data file to see the available datasets)
- Garnet (including (1) Fe+Mn, Mg and Ca and (2) Mn, Mg and Ca)
- Tourmaline (Al-Fe-Mg)
How to use
1- Install devtools in R
install.packages("devtools")
2- Import dev tools from library and use install_github to download this package library(devtools) devtools::install_github("gabertol/ggarnet")
3- Import ggarnet library(ggarnet)
Examples
library(ggarnet)
library(ggplot2)
library(ggtern)
ggarnet_fe_mn()+ ggplot2::scale_fill_brewer(palette="Set2")
ggarnet_mn()+ geom_point(data="yourDF",aes(x,y,z)) # replace yourDF by a dataframe with your data
Authors
Dr. Gabriel Bertolini (gabertol@gmail.com)
Undergrad João Miguel Maraschin Santos