pairs2: Plotting two numeric matrices

Description Usage Arguments Author(s) Examples

View source: R/pairs2.R

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

1
pairs2(x, y, mars = c(4, 4, 0.1, 0.1), ...)

Arguments

x

a numeric matrix. Same number or rows as y.

y

a numeric matrix. Same number or rows as x.

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 c(4, 4, 0.1, 0.1).

...

Arguments to be passed to methods, such as graphical parameters (see par). Should not contain xlab and ylab.

Author(s)

Klaus Nordhausen

Examples

1
2
3
4
5
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)

Example output

Loading required package: ICSNP
Loading required package: mvtnorm
Loading required package: ICS
Loading required package: SpatialNP

MNM documentation built on May 2, 2019, 5:09 a.m.