cbk.plot.balance: Balance quantity of elements in whole rock and phases

Description Usage Arguments Value Examples

View source: R/cbk.plot.balance.R

Description

Balance quantity of elements in whole rock and phases. This calculates quantity of elements in each phases from mode and element abundances of each phase. Then from calculated whole-rock (WR) quantity of element by summation and measured WR quantity of element, this estimates surplus or deficit of elements.

Usage

1
2
cbk.plot.balance(pmlame_or_file, reflame_or_file, modeinfo,
  verbose = FALSE)

Arguments

pmlame_or_file

A pmlame or CASTEML or TBLAME.csv with element abundance of phases without measured WR

reflame_or_file

A pmlame or CASTEML or TBLAME.csv with element abundance of measured WR

modeinfo

A pmlame or TBLAME.csv with mode and density of phases including WR

verbose

Output debug info (default: FALSE).

Value

A pmlame with element quantities and mode of phases

Examples

1
2
3
4
5
6
reflame  <- cbk.ref("Anders.1989",property=cbk.periodic("atomicnumber"))
pmlfile  <- cbk.path("demo-trc0.pml")
message(sprintf("The pmlfile is located at |%s|.",pmlfile))
modeinfo <- cbk.path("demo-mode0.csv")
message(sprintf("The modeinfo is located at |%s|.",modeinfo))
MM       <- cbk.plot.balance(pmlfile,reflame,modeinfo)

misasa/chelyabinsk documentation built on Nov. 24, 2020, 5:47 a.m.