pairs2 | R Documentation |
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.
pairs2(x, y, mars = c(4, 4, 0.1, 0.1), ...)
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 |
Klaus Nordhausen
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.