pairs2 {MNM} | R Documentation |
Plotting two numeric matrices
Description
The function plots each variable contained in the matrix 'x' against the all variables contained in matrix 'y'. The function is not very sophisticated and only used to consider the residuals in a multivariate regression.
Usage
pairs2(x, y, mars = c(4, 4, 0.1, 0.1), ...)
Arguments
x |
a numeric matrix. Same number or rows as |
y |
a numeric matrix. Same number or rows as |
mars |
A numerical vector of the form 'c(bottom, left, top, right)'
which gives the number of lines of margin to be specified on
the four sides of the plot. The default is |
... |
Arguments to be passed to methods, such as graphical
parameters (see |
Author(s)
Klaus Nordhausen
Examples
X <- rmvnorm(50, c(0,0,1))
Y <- rmvnorm(50, c(20,1), matrix(rep(0.5,4),ncol=2))
colnames(X) <- LETTERS[1:3]
colnames(Y) <- letters[1:2]
pairs2(X,Y)
[Package MNM version 1.0-4 Index]