Fred,
[from help on pairs() ]:
...
Arguments:
x: the coordinates of points given as columns of a matrix.
So yes, pairs will do what you ask. See ?pairs for more info.
Also you might consider the alternative function from the lattice package:
> library(lattice) #load lattice graphics
Hey, R-listers
I am going to plot a scatter-plot matrix using R.
For example, give a matrix X=[x1, x2, ..., xn]
where each xi is a column vector, how to plot
all the pair scatter-plots between two different
xi and xj?
Is PAIRS able to achieve this function?
Thanks for your help.
Fred
_