s.match | R Documentation |
This function represents a two dimensional scatter plot linking paired coordinates.
s.match(dfxy1, dfxy2, xax = 1, yax = 2, labels =
row.names(as.data.frame(dfxy1)), arrows = TRUE,
facets = NULL, plot = TRUE, storeData = TRUE,
add = FALSE, pos = -1, ...)
dfxy1 |
a data frame, the first system of coordinates, used to produce the plot |
dfxy2 |
a data frame, the second system of coordinates, with as many rows as |
labels |
a vector of character strings containing the matches' labels |
xax |
an integer (or a vector) indicating which column(s) of |
yax |
an integer (or a vector) indicating which column(s) of |
arrows |
a logical to draw arrows |
facets |
a factor splitting the rows of |
plot |
a logical indicating if the graphics is displayed |
storeData |
a logical indicating if the data should be stored in
the returned object. If |
add |
a logical. If |
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 |
... |
additional graphical parameters (see
|
An object of class ADEg
(subclass S2.match
) or ADEgS
(if add
is TRUE
and/or
if facets or vectors for xax
/yax
are used).
The result is displayed if plot
is TRUE
.
Alice Julien-Laferriere, Aurelie Siberchicot aurelie.siberchicot@univ-lyon1.fr and Stephane Dray
S2.match
ADEg.S2
X <- data.frame(x = runif(50, -1, 2), y = runif(50, -1, 2))
Y <- X + rnorm(100, sd = 0.3)
g1 <- s.match(X, Y, arr = TRUE, ppoints.cex = 2, ppoints.col = c("blue", "green"))
data(doubs, package = "ade4")
dudi1 <- ade4::dudi.pca(doubs$env, scale = TRUE, scannf = FALSE, nf = 3)
dudi2 <- ade4::dudi.pca(doubs$fish, scale = FALSE, scannf = FALSE, nf = 2)
coin1 <- ade4::coinertia(dudi1, dudi2, scannf = FALSE, nf = 2)
g2 <- s.match(dfxy1 = coin1$mX, dfxy2 = coin1$mY)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.