[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 package > ?splom #help for splom()
Which is called differently using a formula interface.
HTH
G
Feng Zhang wrote:
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
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help
-- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [T] +44 (0)20 7679 5522 ENSIS Research Fellow [F] +44 (0)20 7679 7565 ENSIS Ltd. & ECRC [E] [EMAIL PROTECTED] UCL Department of Geography [W] http://www.ucl.ac.uk/~ucfagls/cv/ 26 Bedford Way [W] http://www.ucl.ac.uk/~ucfagls/ London. WC1H 0AP. %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help