triangle.match {adegraphics}R Documentation

Ternary plot of the matching between two sets of coordinates

Description

This function represents a three dimensional scatter plot of paired coordinates.

Usage

triangle.match(dfxyz1, dfxyz2, labels = row.names(as.data.frame(dfxyz1)), 
  min3d = NULL, max3d = NULL, adjust = TRUE, showposition = TRUE, facets = NULL, 
  plot = TRUE, storeData = TRUE, add = FALSE, pos = -1, ...)

Arguments

dfxyz1

a three columns data frame, the first system of coordinates, used to produce the plot

dfxyz2

a three columns data frame, the second system of coordinates, with as many rows as dfxyz1, used to produce the plot.

labels

a vector of character strings containing the matches' labels

adjust

a logical to adjust the device with the limits of the smaller equilateral triangle containing the values

min3d

a vector of three values for triangular minimal limits

max3d

a vector of three values for triangular maximal limits

showposition

a logical indicating whether the used triangle should be shown in the complete one

facets

a factor splitting the rows of dfxyz so that subsets of the data are represented on different sub-graphics

plot

a logical indicating if the graphics is displayed

storeData

a logical indicating if the data are stored in the returned object. If FALSE, only the names of the data arguments are stored

add

a logical. If TRUE, the graphic is superposed to the graphics already plotted in the current device

pos

an integer indicating the position of the environment where the data are stored, relative to the environment where the function is called. Useful only if storeData is FALSE

...

additional graphical parameters (see adegpar and trellis.par.get)

Value

An object of class ADEg (subclass Tr.match) or ADEgS (if showposition is TRUE, if add is TRUE and/or if facets are used).
The result is displayed if plot is TRUE.

Author(s)

Alice Julien-Laferriere, Aurelie Siberchicot aurelie.siberchicot@univ-lyon1.fr and Stephane Dray

See Also

Tr.match ADEg.Tr

Examples

data(euro123, package = "ade4")
triangle.match(euro123$in78, euro123$in86, plabels.cex = 0.8)

[Package adegraphics version 1.0-21 Index]