Learn R Programming

plotrix (version 2.5-2)

p.ions: Calculate ion/total(ion) ratios.

Description

Calculates the ion/total(ions) ratios of ions used in the Piper diagram.

Usage

p.ions(meq,short.output=TRUE)

Arguments

meq
A data frame containing the concentrations of ions used in the Piper diagram in milliequivalents/liter.
short.output
Whether to return the proportions of four ions (TRUE) or include carbonate-bicarbonate and sodium-potassium (FALSE).

Value

  • The proportion of the ions.

Details

p.ions calculates the proportions of anions or cations to total anions or cations for the ions used in the Piper diagram.

See Also

piper.diagram