Petrology class project in R and Excel

My 2 unit self-study assignment this semester was to create a project for the G310/510 class that would take one full class week (4 hours total) for the students to complete. My G510 grade for the project depended on my ability to grade the finished assignments. I report that my project was a success, and I am publishing it here. Continue reading

R: Spider diagrams

Creating a spider diagram in R is not a trivial task. A spider diagram is a multi-line chart, or geology’s version of a parallel axes plot. Spider diagrams are used to see if the lava is depleted or enriched in REE (rare earth elements) compared to some normative rock (chondrite meteorite; depleted mid-ocean ridge basalt, or NMORB; primitive mantle; etc.). The x-values are the elements of interest, and the y-values are plotted on a logarithmic scale. The normalizing values therefore plot as a horizontal line at 1.
Continue reading

BibDesk template

BibDesk is a citation program for Macintosh. I wrote a template that formats citations for geological publications.  I’ve only got the format for journal articles so far, but will be adding books and other publication types as I get to them and need them.

Here is a screencap of BibDesk with two citation records selected. See the Bibliography in the bottom pane created by my template.  Where available, I also have files attached to each citation record, including a .pdf of the text and an excel spreadsheet with any geochemistry values I wanted to use for my thesis.

Continue reading