xyz2xy {geostats}R Documentation

get x,y plot coordinates of ternary data

Description

Helper function to generate bivariate plot coordinates for ternary data.

Usage

xyz2xy(xyz)

Arguments

xyz

an n x 3 matrix or data frame

Value

an n x 2 numerical matrix

Examples

xyz <- rbind(c(1,0,0),c(0,1,0),c(0,0,1),c(1,0,0))
xy <- xyz2xy(xyz)
plot(xy,type='l',bty='n')

[Package geostats version 1.6 Index]