Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tri

Ternary or Triangular Plots.


Description

triplot plots in a triangle the values of three variables. Useful for mixtures (chemistry etc.).

Usage

triplot(a, f, m, symb=2, grid=FALSE, ...)

Arguments

a

Vector of first variable.

f

Vector of second variable.

m

Vector of third variable.

symb

Symbol to be plotted

grid

Plot the grid: TRUE or FALSE

...

Additional parameters for plot

Value

The function tri is called for its side effect to produce a plot.

Author(s)

Colin Farrow Computing Service, University of Glasgow, Glasgow G12 8QQ
, c.farrow@compserv.gla.ac.uk

Examples

# some random data in three variables
c1 <- runif(25)
c2 <- runif(25)
c3 <- runif(25)
# basic plot
par(mfrow=c(1,2))
triplot(c1,c2,c3)
# plot with different symbols and a grid
triplot(c1,c2,c3, symb=7, grid=TRUE)

cwhmisc

Miscellaneous Functions for Math, Plotting, Printing, Statistics, Strings, and Tools

v6.6
GPL (>= 2)
Authors
Christian W. Hoffmann
Initial release
2018-08-24, 10:40:10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.