[R] Selecting a subplot of pairs

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Jan 21 12:54:06 CET 2005


Yves Brostaux wrote:

> Hello,
> 
> I'm trying to plot a set of 3 dependant variables (y) against 4 
> predictors (x) in a matrix-like plot, sharing x- an y-axis for all the 
> plot on the same column/line :
> 
> y1/x1   y1/x2   y1/x3   y1/x4
> y2/x1   y2/x2   y2/x3   y2/x4
> y3/x1   y3/x2   y3/x3   y3/x4
> 
> In fact, this plot is a rectangular selection of the result of pairs(), 
> limited to the relations between x's and y's and excluding those within 
> x's and y's. I managed to recreate such a plot using a script with 
> layout(), axis() and so on, but I was wondering if there already exists 
> a clean function for such a task, in case I would encounter this problem 
> again ?
> 

The functionality in packages grid and lattice is your friend (if you 
dislike it, you can twiddle with par()'s argument "mfrow").

Uwe Ligges




More information about the R-help mailing list