Displays a paired plot (i.e. a score plot of paired points) of a multivariate analysis.
MVA.pairplot(x, xax = 1, yax = 2, pairs = NULL, scaling = 2, space = 1, fac = NULL,
xlab = NULL, ylab = NULL, main = NULL, ident = TRUE, labels = NULL, cex = 0.7, col = 1,
lwd = 1, main.pos = c("bottomleft", "topleft", "bottomright", "topright"),
main.cex = 1.3, legend = FALSE, legend.pos = c("topleft", "topright", "bottomleft",
"bottomright"), legend.title = NULL, legend.lab = NULL, drawextaxes = TRUE,
drawintaxes = TRUE, xlim = NULL, ylim = NULL)
a multivariate analysis (see Details).
the horizontal axis.
the vertical axis. Cannot be NULL
, only two-dimensional graphs can be drawn.
two-level factor identifying paired individuals (in the same order in both sets of points). Can be omitted with multivariate analyses where two sets of points are available in the same space (see MVA.scoreplot
). In this case these sets are automatically detected.
type of scaling. Only available with some analyses performed with the vegan
package. See Details of MVA.scoreplot
.
scores to be displayed, when several spaces are available (see Details of MVA.scoreplot
). space
is the number of the space to be plotted.
an optional factor defining groups pairs.
legend of the horizontal axis. If NULL
(default), automatic labels are used depending on the multivariate analysis.
legend of the vertical axis. If NULL
(default), automatic labels are used depending on the multivariate analysis.
optional title of the graph.
logical indicating if variable names should be displayed.
names of the individuals. If NULL
(default), labels correspond to row names of the data used in the multivariate analysis.
size of the labels. If fac
is not NULL
, can be a vector of length one or a vector giving one value per group. Otherwise a vector of any length can be defined, which is recycled if necessary.
color(s) used for arrows and labels. If fac
is not NULL
, can be a vector of length one or a vector giving one value per group. Otherwise a vector of any length can be defined, which is recycled if necessary.
width of arrows. If fac
is not NULL
, can be a vector of length one or a vector giving one value per group. Otherwise a vector of any length can be defined, which is recycled if necessary.
position of the title, if main
is not NULL
. Default to "bottomleft"
.
size of the title, if main
is not NULL
.
logical indicating if a legend should be added to the graph.
position of the legend, if legend
is TRUE
. Default to "topleft"
.
optional title of the legend, if legend
is TRUE
.
legend labels, if legend
is TRUE
. If NULL
and fac
is defined, levels of fac
are used.
logical indicating if external axes should be drawn..
logical indicating if internal axes should be drawn.
limits of the horizontal axis. If NULL
, limits are computed automatically.
limits of the vertical axis. If NULL
, limits are computed automatically.
Maxime HERVE <maxime.herve@univ-rennes1.fr>
This function should not be use directly. Prefer the general MVA.plot
, to which all arguments can be passed.
All multivariate analyses supported by MVA.scoreplot
can be used for a paired plot.
require(ade4)
data(macaca)
PCIA <- procuste(macaca$xy1,macaca$xy2)
MVA.plot(PCIA,"pairs")
Run the code above in your browser using DataLab