xyz2xy: get x,y plot coordinates of ternary data

View source: R/ternary.R

xyz2xyR 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')

geostats documentation built on Jan. 7, 2023, 5:32 p.m.

Related to xyz2xy in geostats...