Function to calculate the coordinates of set of samples in a piper diagram.

piper_transform(gdata)

Arguments

gdata

A geochemical_dataset

Value

This function returns a data.frame with the following variables:

  • cat_x,cat_y: coordinates of the cations in the ternary diagram (scaled between 0 and 1).

  • an_x,an_y: coordiantes of the anions in the ternary diagram (scaled between 0 and 1).

  • d_x,d_y: coordinates of the samples in the central diamond (scaled between 0 and 1).

See also